Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Multi Select

Preview

designengineering

Install

Add it with your package manager, or copy the source manually.

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/multi-select

Import the shared styles once in your application.

TSUsage
import MultiSelect from '@/components/beui/controls/choice/MultiSelect.vue'
import '@/components/beui/styles.css'

API Reference

MultiSelectContent

side?
"top" | "bottom"

Which side of the field the panel opens on.

Defaultbottom
align?
"start" | "center" | "end"

Alignment along the field's edge.

Defaultstart
sideOffset?
number

Gap between field and panel, in px.

Default6
avoidCollisions?
boolean

Flip to the other side when the preferred one does not fit.

Defaulttrue
class?
string
Default—
#default?
slot
Default—

MultiSelect

v-model?
string[]
Defaultundefined
defaultValue?
string[]
Default[]
v-model:open?
boolean
Defaultundefined
defaultOpen?
boolean
Defaultfalse
v-model:query?
string
Defaultundefined
defaultQuery?
string
Default
filter?
ComboFilter
DefaultdefaultFilter
disabled?
boolean
Defaultfalse
class?
string
Default—
labels?
ComboLabels

Override any built-in string. `{label}` fills the option label.

Default—
options?
readonly ChoiceOption[]

Render the field from a list of options instead of composing parts.

Defaultundefined
label?
string

Accessible name of the search input.

Default—
placeholder?
string
Default—
empty?
string

Text shown when nothing matches.

Default—
listLabel?
string

Accessible name of the list.

Default—
side?
"top" | "bottom"
Defaultbottom
align?
"start" | "center" | "end"
Defaultstart
sideOffset?
number
Default6
avoidCollisions?
boolean
Defaulttrue
groupSeparator?
boolean

Draw a divider between option groups.

Default—
showIcon?
boolean

Show the search glyph in the input (always on for the single combobox).

Default—
triggerStyle?
ComboStyle
Default—
contentStyle?
ComboStyle
Default—
listStyle?
ComboStyle
Default—
name?
string

Form field name; a hidden input carries each selected value.

Default—
#default?
slot
Default—
#option?
{ option: ChoiceOption; selected: boolean; active: boolean }

Row content in `options` mode.

Default—
#chip?
{ option: ChoiceOption | undefined; value: string; label: string }

Chip label in `options` mode.

Default—

MultiSelectEmpty

class?
string
Default—
#default?
slot
Default—

MultiSelectGroup

class?
string
Default—
#default?
slot
Default—

MultiSelectItem

value
string
Default—
textValue?
string

Plain-text label used for filtering, the input and chips. Defaults to the item's text when it is plain text, else `value`.

Default—
keywords?
string[]

Extra words the filter matches besides the label.

Default[]
disabled?
boolean
Defaultfalse
@select?
(value: string) => void

Fires when this option is chosen.

Default—
class?
string
Default—
#default?
{ selected: boolean; active: boolean }
Default—

MultiSelectLabel

class?
string
Default—
#default?
slot
Default—

MultiSelectList

ariaLabel?
string

Accessible name of the list.

Default—
class?
string
Default—
#default?
slot
Default—

MultiSelectSeparator

class?
string
Default—

MultiSelectInput

showIcon?
boolean

Show a search glyph before the input.

Defaultfalse
class?
string
Default—

MultiSelectTrigger

class?
string
Default—
#default?
slot
Default—

MultiSelectValue

placeholder?
string
Default—
class?
string
Default—
chipClassName?
string

Class for each chip.

Default—
#default?
{ value: string; label: string }

Chip label.

Default—
#placeholder?
slot

Placeholder content while nothing is chosen.

Default—
Also on React Native. Searchable options that become removable chips.(opens in a new tab)

Updated