ComponentClient component

Multi Select

A searchable multiple-value picker with selection limits and compact summaries.

Installation

Preview

Preview style

Search and select up to four teams.

Usage

tsx
import { MultiSelect } from "@/components/ui/multi-select"

<MultiSelect
  defaultValue={["design"]}
  options={[
    { value: "design", label: "Design" },
    { value: "engineering", label: "Engineering" },
    { value: "product", label: "Product" },
  ]}
  placeholder="Select teams"
/>

API reference

PropTypeDefaultDescription
optionsMultiSelectOption[]Searchable values, display labels and disabled states.
valuestring[]Controlled selected values.
onValueChange(value: string[]) => voidRuns whenever the selection changes.
maxSelectednumberMaximum number of simultaneously selected options.
maxCountnumber2Visible chips before the remaining count is collapsed.
classNamestringOverrides or extends the generated Tailwind classes.
disabledbooleanfalsePrevents user interaction when supported.