Dropdowns have button shapes and are left aligned by default. Dropdown menu can also have different widths using the size prop.
Show codeHide code
Dropdowns 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
Dropdowns buttons can have different colors. Use the button-color prop to change the dropdown button color.
Show codeHide code
Dropdowns can also be right aligned. Use the orientation prop to change the alignment of the dropdown.
Show codeHide code
Dropdowns 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
Dropdowns can be used as context menus. You can also align it to the end using the orientation prop.
Show codeHide code
Dropdowns 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
Dropdowns 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
Dropdowns items can have an icon. Use the start slot to add an icon to the dropdown item.
Show codeHide code
Dropdowns items can have an avatar. Use the start slot to add an icon to the dropdown item.
Show codeHide code
Dropdowns menus can have a header. Use the headerLabel prop to add a header text to the dropdown menu.
Show codeHide code
rounded@since
2.0.0
@default
'sm'
Show exampleHide example
size@default
'md'
Show exampleHide example
variant@since
2.0.0
@default
'button'
Show exampleHide example
color@default
'white'
Show exampleHide example
button-color@default
'default'
Show exampleHide example
orientation@deprecated
use placement instead
Show exampleHide example
placementShow exampleHide example
labelShow exampleHide example
header-labelShow exampleHide example
fixedShow exampleHide example
#buttonShow exampleHide example
#labelShow exampleHide example
#defaultShow exampleHide example
rounded@since
2.0.0
@default
'sm'
Show exampleHide example
textShow exampleHide example
typeShow exampleHide example
toShow exampleHide example
hrefShow exampleHide example
relShow exampleHide example
targetShow exampleHide example
color@default
'default'
Show exampleHide example
titleShow exampleHide example
classesShow exampleHide example
disabledShow exampleHide example
#startShow exampleHide example
#defaultShow exampleHide example
#textShow exampleHide example
#end