Getting Started
Foundations
Components
Search for a command to run...
Multi Select allows users to choose multiple options from a dropdown list. Selected items are displayed as badges with the ability to clear individual selections or all at once. The component supports keyboard navigation and provides a clean interface for managing multiple selections.
Registry Component: This component is available from the Strongtie
registry. Add it using: npx shadcn@latest add @strongtie/multi-select
Add this component from the Strongtie registry:
Or by URL:
This will install the component and all required dependencies:
import { MultiSelect } from "@/components/ui/multi-select"This module exports the following components:
MultiSelectRootMultiSelectTriggerMultiSelectContentMultiSelectItemMultiSelectSeparatorMultiSelectGroupMultiSelectLabelMultiSelectClearButtonuseMultiSelect<MultiSelectRoot>| Prop | Type | Default | Description |
|---|---|---|---|
onValueChange * | (value: string[]) => void | - | Callback when selected values change |
value * | string[] | - | Array of selected values |
disabled | boolean | false | Whether the multi-select is disabled |
items | MultiSelectItemType[] | - | Items to display in the list |
maxItems | number | - | Maximum number of items that can be selected |
<MultiSelectTrigger>| Prop | Type | Default | Description |
|---|---|---|---|
placeholder | string | - | Placeholder text when no items are selected |
<MultiSelectItem>| Prop | Type | Default | Description |
|---|---|---|---|
label | string | - | Display label for the item |