Multi Select
Preview
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
Download the release archive to your project root, then install the local file.
Import the shared styles once in your application.
API Reference
MultiSelectContent
side?"top" | "bottom"Which side of the field the panel opens on.
bottomalign?"start" | "center" | "end"Alignment along the field's edge.
startsideOffset?numberGap between field and panel, in px.
6avoidCollisions?booleanFlip to the other side when the preferred one does not fit.
trueclass?string—#default?slot—MultiSelect
v-model?string[]undefineddefaultValue?string[][]v-model:open?booleanundefineddefaultOpen?booleanfalsev-model:query?stringundefineddefaultQuery?stringfilter?ComboFilterdefaultFilterdisabled?booleanfalseclass?string—labels?ComboLabelsOverride any built-in string. `{label}` fills the option label.
—options?readonly ChoiceOption[]Render the field from a list of options instead of composing parts.
undefinedlabel?stringAccessible name of the search input.
—placeholder?string—empty?stringText shown when nothing matches.
—listLabel?stringAccessible name of the list.
—side?"top" | "bottom"bottomalign?"start" | "center" | "end"startsideOffset?number6avoidCollisions?booleantruegroupSeparator?booleanDraw a divider between option groups.
—showIcon?booleanShow the search glyph in the input (always on for the single combobox).
—triggerStyle?ComboStyle—contentStyle?ComboStyle—listStyle?ComboStyle—name?stringForm field name; a hidden input carries each selected value.
—#default?slot—#option?{ option: ChoiceOption; selected: boolean; active: boolean }Row content in `options` mode.
—#chip?{ option: ChoiceOption | undefined; value: string; label: string }Chip label in `options` mode.
—MultiSelectEmpty
class?string—#default?slot—MultiSelectGroup
class?string—#default?slot—MultiSelectItem
valuestring—textValue?stringPlain-text label used for filtering, the input and chips. Defaults to the item's text when it is plain text, else `value`.
—keywords?string[]Extra words the filter matches besides the label.
[]disabled?booleanfalse@select?(value: string) => voidFires when this option is chosen.
—class?string—#default?{ selected: boolean; active: boolean }—MultiSelectLabel
class?string—#default?slot—MultiSelectList
ariaLabel?stringAccessible name of the list.
—class?string—#default?slot—MultiSelectSeparator
class?string—MultiSelectInput
showIcon?booleanShow a search glyph before the input.
falseclass?string—MultiSelectTrigger
class?string—#default?slot—MultiSelectValue
placeholder?string—class?string—chipClassName?stringClass for each chip.
—#default?{ value: string; label: string }Chip label.
—#placeholder?slotPlaceholder content while nothing is chosen.
—Updated