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
sizeShow exampleHide example
colorShow exampleHide example
labelShow exampleHide example
shapeShow exampleHide example
orientationShow exampleHide example
flavorShow exampleHide example
button-colorShow exampleHide example
header-labelShow exampleHide example
#buttonShow exampleHide example
#labelShow exampleHide example
#defaultShow exampleHide example
typeShow exampleHide example
relShow exampleHide example
toShow exampleHide example
titleShow exampleHide example
colorShow exampleHide example
shapeShow exampleHide example
disabledShow exampleHide example
classesShow exampleHide example
textShow exampleHide example
hrefShow exampleHide example
targetShow exampleHide example
#startShow exampleHide example
#defaultShow exampleHide example
#textShow exampleHide example
#end