Skip to content

Dropdown Menu

Dropdown menus are used to display a list of options that can be selected by the user. They are commonly used in forms, navigation, and other interactive elements.

Loading Code Block...

To get started, install Butterfly DS via aqua:

Loading Code Block...
Loading Code Block...
Loading Code Block...
Loading Code Block...
Loading Code Block...

PropsDefaultTypeDescription
sizemdstringThe size of the dropdown menu.
placeholderSelect...stringThe placeholder text for the dropdown menu.
showSearchfalsebooleanWhether to show the search input in the dropdown menu.
alignstartstart | center | endThe alignment of the dropdown menu.
sidebottomtop | bottom | left | rightWhich side the dropdown menu should open from.
widthautonumber | 'content' | 'auto'The width of the dropdown menu.
disabledfalsebooleanWhether the dropdown menu is disabled.
options[]Array<{ label: string, value: string, icon? : ReactNode }>An array of options to display in the dropdown menu. Each option should have a label and a value.
multiplefalsebooleanWhether the dropdown menu allows multiple selections.
icon
icon icon icon icon