Multi Select
multi-selectChoose several options from a long list: removable chips you can type into to filter, over a list where each option toggles. Groups, a max with a counter, Backspace and arrow keys through the chips, and plain form submission — on Base UI's Combobox.
"use client";
import { useState } from "react";
import { MultiSelect } from "@/components/forme/multi-select/multi-select";
const frameworks = [
{ value: "next", label: "Next.js", group: "React" },
{ value: "remix", label: "React Router", group: "React" },
{ value: "astro", label: "Astro", group: "Islands" },
{ value: "qwik", label: "Qwik", group: "Islands" },
{ value: "nuxt", label: "Nuxt", group: "Vue" },
{ value: "vitepress", label: "VitePress", group: "Vue" },
{ value: "sveltekit", label: "SvelteKit", group: "Svelte" },
{ value: "solidstart", label: "SolidStart", group: "Solid" },
{ value: "angular", label: "Angular", group: "Other", disabled: true },
];
const people = [
"Ada Lovelace",
"Grace Hopper",
"Alan Turing",
"Katherine Johnson",
"Edsger Dijkstra",
"Barbara Liskov",
"Donald Knuth",
"Margaret Hamilton",
].map((name) => ({ value: name.toLowerCase().replace(/\s/g, "-"), label: name }));
export function MultiSelectDemo() {
const [stack, setStack] = useState(["next", "astro"]);
return (
<div className="flex w-full max-w-sm flex-col gap-8">
<MultiSelect
label="Frameworks"
options={frameworks}
value={stack}
onValueChange={setStack}
placeholder="Search frameworks…"
description="Type to filter. Backspace removes the last one."
/>
<MultiSelect
label="Reviewers"
options={people}
max={3}
placeholder="Add up to three reviewers"
/>
</div>
);
}Install
Adds the component, its registry dependencies, and the token stylesheet you import once.
API reference
Read from the source, so it is the API of the file you install. A prop marked * is required.
MultiSelect
Choose several things from a long list: a field of removable chips you can type into to filter, over a list where each option toggles.
| Prop | Type | Default | Description |
|---|---|---|---|
label* | string | — | Visible label. |
options* | readonly MultiSelectOption[] | — | |
value | string[] | — | Selected values, in the order they were chosen. |
defaultValue | string[] | [] | |
onValueChange | (value: string[]) => void | — | |
placeholder | string | "Search…" | |
description | string | — | Help text under the field. Replaced by error when there is one. |
error | string | — | |
max | number | — | The most that can be chosen. The rest of the list waits until one is removed. |
emptyMessage | string | "No matches" | Shown when the search matches nothing. |
name | string | — | Submits each selected value under this name in a plain form. |
disabled | boolean | — | |
className | string | — |
Related


Toggle group
A row of toggles that share a value, or several. One control rather than a row of separate buttons: the selected one is filled and its neighbours stay quiet, and it works for icon-only formatting bars and for labelled density switches alike.
inputs

Calendar
A month grid for a single date or a range, with no date library. Full WAI-ARIA keyboard support, min, max and disabled days, a range that previews under the pointer, and a fixed six-week height so nothing below it jumps.
inputs

File Dropzone
A drop target that is also a real file picker, so click, keyboard and drag all work. Checks type and size on drop as well as in the picker, and reports each rejected file by name.
inputs