Documentation

Size

Dropdown have button shapes and are left aligned by default. Dropdown menu can also have different widths using the size prop.

Show code
vue

Contrast

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 code
vue

Button:color

Dropdown buttons can have different colors. Use the button-color prop to change the dropdown button color.

Show code
vue

Button:end

Dropdown can also be right aligned. Use the orientation prop to change the alignment of the dropdown.

Show code
vue

Context:start

Dropdown can be used as context menus. Use the variant prop with the context value to change the dropdown to a context menu.

Show code
vue

Context:end

Dropdown can be used as context menus. You can also align it to the end using the orientation prop.

Show code
vue

Text:start

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 code
vue

Text:end

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 code
vue

Slot:icon

Dropdown items can have an icon. Use the start slot to add an icon to the dropdown item.

Show code
vue

Slot:avatar

Dropdown items can have an avatar. Use the start slot to add an icon to the dropdown item.

Show code
vue

Slot:header

Dropdown menus can have a header. Use the headerLabel prop to add a header text to the dropdown menu.

Show code
vue

Checkbox item

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 code
vue

Radio item

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 code
vue

Switch item

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 code
vue

Switch ball item

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 code
vue

Search item

Dropdown menus and items can be heavily customized, using wrapping elements, scrolling areas, as well as search and actions.

Show code
vue
classes
Optional CSS classes to apply to the component inner elements.
Show example
vue
fixed
Used a fixed strategy to float the component
Show example
vue
header-label
The header label to display for the dropdown.
Show example
vue
label
The label to display for the dropdown.
Show example
vue
color
The color of the dropdown.
Show example
vue
rounded
The radius of the dropdown button.

@since

2.0.0

Show example
vue
placement
The placement of the dropdown via floating-ui.
Show example
vue
size
The size of the dropdown.
Show example
vue
variant
The variant of the dropdown.

@since

2.0.0

Show example
vue
button-color
The color of the button.
Show example
vue
#button
Show example
vue
#label
Show example
vue
#default
Show example
vue
color
The color of the dropdown.
Show example
vue
rounded
The radius of the dropdown button.
Show example
vue
placement
The placement of the dropdown via floating-ui.
Show example
vue
size
The size of the dropdown.
Show example
vue
variant
The variant of the dropdown.
Show example
vue
buttonColor
The color of the button.
Show example
vue
classes
Optional CSS classes to apply to the wrapper and inner elements.
Show example
vue
disabled
Whether the button is disabled.
Show example
vue
href
Using href instead of to result in a native anchor with no router functionality.
Show example
vue
rel
The value for the `rel` attribute on the button.
Show example
vue
target
The value for the `target` attribute on the button.
Show example
vue
text
The text to display for the dropdown item.
Show example
vue
title
The title to display for the dropdown item.
Show example
vue
to
The route to navigate to when the button is clicked.
Show example
vue
type
The type of button.
Show example
vue
color
The hover color of the dropdown-item inner elements.

@since

3.0.0

Show example
vue
rounded
The radius of the dropdown-item.

@since

2.0.0

Show example
vue
contrast
The contrast of the dropdown-item.
Show example
vue
#start
This slot has no inherted props
Show example
vue
#default
Show example
vue
#text
Show example
vue
#end
Show example
vue
color
The hover color of the dropdown-item inner elements.
Show example
vue
rounded
The radius of the dropdown-item.
Show example
vue
contrast
The contrast of the dropdown-item.
Show example
vue
This component has no props
vue