DropdownProps<T> = object
| Property | Type | Description |
|---|
className? | string | A class property to attach to the element. See Element.className |
disabled? | boolean | If true, the component is disabled. Default false |
initialSelectedOption? | DropdownOption<T> | number | An option or an index of an option from options to select on first render. |
onChange? | (option) => void | A callback invoked when an option is selected. |
options? | DropdownOption<T>[] | A list of options to render in the dropdown. |
selectedOptionIndicator? | null | A visual element rendered next to the current selected option in the dropdown menu. To disable the indicator, specify null. Currently, only disabling the indicator is supported. |
toggle? | object | Display a static value in place of the the dropdown toggle button (in place of the current selected option). |
toggle.label? | React.ReactNode | - |