Dropdown is typically used to display a set of options that appear when the user clicks or hovers over a trigger element. Users can select an option from the dropdown menu, which is commonly used for navigation or other scenarios where multiple options need to be provided.
The icon element will be displayed next to the dropdown button text.
iconControl
prefixsuffix
prefix
Controls the display position of the icon relative to the text.
size
mdsmxs
md
The size of the dropdown button.
shortcutKey
string
none
Sets a global shortcut key, such as Control+I. When the user presses the combination key, the dropdown button click event will be triggered. View Keyboard
onOpen
(open: boolean) => void
none
Event handler called when the dropdown menu is open state change.
The icon element will be displayed next to the dropdown item text.
shortcutKey
string
none
Sets a global shortcut key, such as Control+I. When the user presses the combination key, the dropdown item's click event will be triggered. View Keyboard
onClick
(event: Event) => void
none
Event handler called when the user select an item (via mouse or keyboard).