Components
Select
Pick one value from a short list, fully keyboard-driven. For long or searchable lists, use Dropdown.
Groceries
Rent
Transport
Dining out
Subscriptions
Health
Travel
Import
import { Select } from '@rinzai/zen';Examples
Custom options
renderOption shows anything per option; disabled options are skipped by the keyboard.
Indian rupeeINR ₹
US dollarUSD $
EuroEUR €
Japanese yenJPY ¥
API reference
<Select>
Pick one value from a short list: a field-styled button that opens a list below it. Keyboard: arrows, Home/End, type to jump, Enter to choose, Escape to close. For long or searchable lists, use Dropdown.
| Prop | Type | Default |
|---|---|---|
onChangeRequired | (value: V) => void | — |
optionsRequired | readonly SelectOption<V>[] | — |
valueRequired | string | null | — |
aria-label | string | — |
classNameClasses for the trigger (e.g. a width, instead of the default full width). | string | — |
disabled | boolean | false |
id | string | — |
listClassNameClasses for the popup list. | string | — |
nameForm field name: adds a hidden input with the value. | string | — |
placeholderShown while nothing is chosen. | string | Select… |
renderOptionCustom content for each option (the label is still used for typing to jump). | ((option: SelectOption<V>) => ReactNode) | — |