Size

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

نمایش کد
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.

نمایش کد
vue

Button:color

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

نمایش کد
vue

Button:end

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

نمایش کد
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.

نمایش کد
vue

Context:end

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

نمایش کد
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.

نمایش کد
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.

نمایش کد
vue

Slot:icon

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

نمایش کد
vue

Slot:avatar

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

نمایش کد
vue

Slot:header

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

نمایش کد
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.

نمایش کد
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.

نمایش کد
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.

نمایش کد
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.

نمایش کد
vue

جستجوی آیتم

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

نمایش کد
vue
classes
Optional CSS classes to apply to the component inner elements.
نمایش مثال
vue
fixed
Used a fixed strategy to float the component
نمایش مثال
vue
header-label
The header label to display for the dropdown.
نمایش مثال
vue
label
The label to display for the dropdown.
نمایش مثال
vue
color
The color of the dropdown.
نمایش مثال
vue
rounded
The radius of the dropdown button.

@since

2.0.0

نمایش مثال
vue
placement
The placement of the dropdown via floating-ui.
نمایش مثال
vue
size
The size of the dropdown.
نمایش مثال
vue
variant
The variant of the dropdown.

@since

2.0.0

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

@since

3.0.0

نمایش مثال
vue
rounded
The radius of the dropdown-item.

@since

2.0.0

نمایش مثال
vue
contrast
The contrast of the dropdown-item.
نمایش مثال
vue
#start
This slot has no inherted props
نمایش مثال
vue
#default
نمایش مثال
vue
#text
نمایش مثال
vue
#end
نمایش مثال
vue
color
The hover color of the dropdown-item inner elements.
نمایش مثال
vue
rounded
The radius of the dropdown-item.
نمایش مثال
vue
contrast
The contrast of the dropdown-item.
نمایش مثال
vue
این کامپوننت هیچ ویژگی‌ای ندارد
vue