Skip to content

DropdownProps

DropdownProps<T> = object

Type Parameter
T
PropertyTypeDescription
className?stringA class property to attach to the element. See Element.className
disabled?booleanIf true, the component is disabled. Default false
initialSelectedOption?DropdownOption<T> | numberAn option or an index of an option from options to select on first render.
onChange?(option) => voidA callback invoked when an option is selected.
options?DropdownOption<T>[]A list of options to render in the dropdown.
selectedOptionIndicator?nullA 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?objectDisplay a static value in place of the the dropdown toggle button (in place of the current selected option).
toggle.label?React.ReactNode-