480
Sponsor

Multi Select

Multi-select list with checkboxes and select-all

Terminal
multi-select-demo
No opentui live preview is registered for this example yet.

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

PropTypeDefault
optionsMultiSelectOption<T>[]required
valueT[]-
onChange(values: T[]) => void-
onSubmit(values: T[]) => void-
cursorstring"›"
checkmarkstring"◉"
heightnumber-