Forms
Select
A styled native `<select>` — the closed state is ours, the open state belongs to the platform.
Select
import { Select } from '@anomalia/ui'; Notes
- Deliberately not a custom listbox: on a phone the OS picker wins on scroll, search and assistive tech.
- Pass
optionsfor the common case, or children for<optgroup>layouts.
Examples
Basics
A styled native select. The closed state is ours; the open state is the platform's — a wheel on iOS, a dialog on Android.
API
| Prop | Type | Default | Description |
|---|---|---|---|
value | string | — | Bindable value. |
options | SelectOption[] | — | `{ value, label, disabled? }`. |
placeholder | string | — | Disabled first option shown when empty. |
Every component also forwards the native attributes of its root element, plus class, so anything not listed here still works.