Open Maciej916 opened 2 years ago
All have to do is to change the state bind to the Dropdown component.
const [optionValue, setOptionValue] = useState('');
<Dropdown
options={options}
value={optionValue}
onChange={(e) => setOptionValue(e.value)}
placeholder={''}
/>
//call this
setOptionValue('STRING_VALUE');
I would like to toggle dropdown by clicking for example button not dropdown by itself, is it possible?