Skip to content

DropdownProps

DropdownProps<T>: object

Type Parameters

Type Parameter
T

Type declaration

NameTypeDescription
classNamestringA class property to attach to the element. See Element.className
disabledbooleanIf true, the component is disabled. Default false
initialSelectedOptionDropdownOption<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.
optionsDropdownOption<T>[]A list of options to render in the dropdown.
selectedOptionIndicatornullA 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.
toggleobjectDisplay a static value in place of the the dropdown toggle button (in place of the current selected option).
toggle.labelReact.ReactNode-