Utility
Terminal
█
multi-select-demo █
Loading preview... █
█
█
█
█
█
█
█
█
█
█
█
█
█
█
█Installation
$ pnpm dlx shadcn@latest add @termcn/opentui/multi-select
Usage
import { MultiSelect } from "@/components/ui/multi-select";<MultiSelect
options={[
{ value: "react", label: "React" },
{ value: "vue", label: "Vue" },
{ value: "svelte", label: "Svelte" },
]}
onChange={(values) => {}}
/>API Reference
MultiSelect
| Prop | Type | Default |
|---|---|---|
options | MultiSelectOption<T>[] | required |
value | T[] | - |
onChange | (values: T[]) => void | - |
onSubmit | (values: T[]) => void | - |
cursor | string | "›" |
checkmark | string | "◉" |
height | number | - |