v0.3.1 StableFoundation ComponentReact 18 & 19Zero Runtime CSS
Combobox
Choose one named option with editable filtering.
Interactive preview
Usage
import { Combobox } from "@devvy-ui/react";
<Combobox label="Framework" name="framework" options={[{ value: 'react', label: 'React' }]} />API reference
Native HTML attributes, className, style and a forwarded ref are supported. Component-specific props:
| Prop | Type | Default | Description |
|---|---|---|---|
| options | ComboboxOption[] | required | Unique values, labels and disabled state. |
| value / defaultValue | string | empty | Selected option value. |
| onValueChange | (value: string) => void | — | Selection callback. |
| loading | boolean | false | Busy/empty message state. |
Accessibility & behavior
Platform Behavior & Guidelines
Selection submits through a hidden native field. Required selection uses native validity. Arrow keys and Enter select; Escape closes. IME composition is preserved.
Source ownership
Run npx @devvy-ui/cli init once in your React project, then add the source:
npx @devvy-ui/cli add comboboxMake 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.
Combobox.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.