/
1.1k
Sponsor

Multi Select

Multi-select list with checkboxes and select-all

Terminal

Installation

$ pnpm dlx shadcn@latest add @termcn/ink/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-

Notes

Accessibility

termcn exposes the following behavior through Ink's terminal accessibility APIs. This is not a browser ARIA or general WCAG-conformance claim.

  • Keyboard: Arrow keys move inside the composite; Home / End select the first or last enabled item; Enter / Space activate, select, or toggle; Escape cancels or closes an owned surface; Tab / Shift+Tab move between termcn/Ink focus targets.
  • Focus and composition: Input is active only while the component's focus target is focused, enabled, active, and inside the topmost focus scope.
  • Screen reader: Ink labels and semantic state expose the component without relying on visual styling alone.