A dropdown menu displays a list of actions or options to a user.
View source code(T | OptionGroup<T>)[]The list of options in the menu.
(getToggleButtonProps: (options?: GetToggleButtonPropsOptions) => ToggleButtonProps, isDropdownOpened: boolean) => ReactNodeFunction to render the button.
stringclassName for the element.
stringMaximum height of the dropdown content.
booleanWhether the dropdown should stay open when an option is selected.
Default: false(option: T) => voidHandler that is called when a option is selected.
"bottom-end" | "bottom-start" | "end-bottom" | "end-top" | "top-end" | "top-start"Placement the menu will render relative to the field.
Default: bottom-start(option: T, index: number, state?: { isSelected: boolean; }) => ReactNodeFunction to render option. Should return DropdownItem(s).
(optionGroup: OptionGroup<T>) => ReactNodeFunction to render option group.