Dropdown have button shapes and are left aligned by default. Dropdown menu can also have different widths using the size
prop.
Show codeHide code
Dropdown menus can have a darker color in dark mode. Use the color
prop to change the contrast of the dropdown menu when in dark mode.
Show codeHide code
Dropdown buttons can have different colors. Use the button-color
prop to change the dropdown button color.
Show codeHide code
Dropdown can also be right aligned. Use the orientation
prop to change the alignment of the dropdown.
Show codeHide code
Dropdown can be used as context menus. Use the variant
prop with the context
value to change the dropdown to a context menu.
Show codeHide code
Dropdown can be used as context menus. You can also align it to the end
using the orientation
prop.
Show codeHide code
Dropdown can also be used as text menus. Use the variant
prop with the text
value to change the dropdown to a text menu.
Show codeHide code
Dropdown can also be used as text menus. Use the variant
prop with the text
value to change the dropdown to a text menu.
Show codeHide code
Dropdown items can have an icon. Use the start
slot to add an icon to the dropdown item.
Show codeHide code
Dropdown items can have an avatar. Use the start
slot to add an icon to the dropdown item.
Show codeHide code
Dropdown menus can have a header. Use the headerLabel
prop to add a header text to the dropdown menu.
Show codeHide code
Dropdown items can be enhanced into a checkbox wrapping them with a using a BaseCheckboxHeadless
component as well the start
item slot prop to add an inner BaseCheckbox
.
Show codeHide code
Dropdown items can be enhanced into a radio button wrapping them with a using a BaseRadioHeadless
component as well the start
item slot prop to add an inner BaseRadio
.
Show codeHide code
Dropdown items can be enhanced into a switch wrapping them with a using a BaseCheckboxHeadless
component as well the start
item slot prop to add an inner BaseSwitchThin
.
Show codeHide code
Dropdown items can be enhanced into a switch wrapping them with a using a BaseCheckboxHeadless
component as well the start
item slot prop to add an inner BaseSwitchBall
.
Show codeHide code
Dropdown menus and items can be heavily customized, using wrapping elements, scrolling areas, as well as search and actions.
Show codeHide code
classes
Show exampleHide example
fixed
Show exampleHide example
header-label
Show exampleHide example
label
Show exampleHide example
color
Show exampleHide example
rounded
@since
2.0.0
Show exampleHide example
placement
Show exampleHide example
size
Show exampleHide example
variant
@since
2.0.0
Show exampleHide example
button-color
Show exampleHide example
#button
Show exampleHide example
#label
Show exampleHide example
#default
Show exampleHide example
color
Show exampleHide example
rounded
Show exampleHide example
placement
Show exampleHide example
size
Show exampleHide example
variant
Show exampleHide example
buttonColor
Show exampleHide example
classes
Show exampleHide example
disabled
Show exampleHide example
href
Show exampleHide example
rel
Show exampleHide example
target
Show exampleHide example
text
Show exampleHide example
title
Show exampleHide example
to
Show exampleHide example
type
Show exampleHide example
color
@since
3.0.0
Show exampleHide example
rounded
@since
2.0.0
Show exampleHide example
contrast
Show exampleHide example
#start
Show exampleHide example
#default
Show exampleHide example
#text
Show exampleHide example
#end
Show exampleHide example
color
Show exampleHide example
rounded
Show exampleHide example
contrast