Dropdown

Introduction to using the Dropdown component

Dropdown 介紹示意圖

Dropdown - a drop-down menu used to let users take the next interaction for selected data. Clicking the button opens a floating area containing a series of options. It looks similar to Select, but the biggest difference is that Dropdown triggers the option event when an option is clicked and then closes the floating area.

Theme color

Size

Placeholder text

Disabled

Prefix and suffix

If a parent has "position: fixed"

Inside bp-form-item

Custom list width

Options and Methods

Attributes

Name
Value
Type
Default
Required
Note

id

String

random

size

small, large

String

v-model

String

options

Array<{ label: string; type?: ‘link’ or ‘external-link’; url: string }>

disabled

Boolean

placeholder

String

theme

primary,

success,

warning,

danger,

primary-ghost,

success-ghost,

warning-ghost,

danger-ghost

String

optionWidth

String

fixed

Boolean

v-slot:prefix

v-slot:affix

listboxClass

String

You can add a classname to the listbox

Demo

Last updated

Was this helpful?