v0.3.1 StableFoundation ComponentReact 18 & 19Zero Runtime CSS
MultiSelect
Select several values with native checkboxes.
Interactive preview
Usage
import { MultiSelect } from "@devvy-ui/react";
<MultiSelect label="Tools" name="tools" options={[{ value: 'git', label: 'Git' }]} />API reference
Native HTML attributes, className, style and a forwarded ref are supported. Component-specific props:
| Prop | Type | Default | Description |
|---|---|---|---|
| options | ComboboxOption[] | required | Unique option values. |
| value / defaultValue | readonly string[] | [] | Selected values. |
| onValueChange | (values: string[]) => void | — | Selection callback. |
| searchable | boolean | true | Filter input visibility. |
Accessibility & behavior
Platform Behavior & Guidelines
Native disclosure, checkboxes, form values and reset. Search hides unmatched options without dropping their selected form values. Controlled values remain application owned.
Source ownership
Run npx @devvy-ui/cli init once in your React project, then add the source:
npx @devvy-ui/cli add multi-selectMake the source yours.
Start from the canonical implementation used by the package and registry. Change the code, keep the MIT notice, and build the behavior your project needs.
MultiSelect.tsxREACT / TSX
Edit your own copy. Downloaded source uses your changes; the component preview above uses the shipped version. Run the source installer first to include shared helpers.