Dropdowns have button shapes and are left aligned by default. Here is an example of a default dropdown button.
Show codeHide code
Dropdowns can also be right aligned. Use the orientation
prop to change the alignment of the dropdown.
Show codeHide code
Dropdowns menus can have a smaller width. Use the compact
prop to change the width of the dropdown menu.
Show codeHide code
Dropdowns can be used as context menus. Use the flavor
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 right using the orientation
prop.
Show codeHide code
Dropdowns can also be used as text menus. Use the flavor
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 flavor
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
size
Show exampleHide example
color
Show exampleHide example
label
Show exampleHide example
shape
Show exampleHide example
orientation
Show exampleHide example
flavor
Show exampleHide example
button-color
Show exampleHide example
header-label
Show exampleHide example
#button
Show exampleHide example
#label
Show exampleHide example
#default
Show exampleHide example
type
Show exampleHide example
rel
Show exampleHide example
to
Show exampleHide example
title
Show exampleHide example
color
Show exampleHide example
shape
Show exampleHide example
disabled
Show exampleHide example
classes
Show exampleHide example
text
Show exampleHide example
href
Show exampleHide example
target
Show exampleHide example
#start
Show exampleHide example
#default
Show exampleHide example
#text
Show exampleHide example
#end