Select
Accessible dropdown select with arrow-key navigation, optional item descriptions, and smooth light/dark styling.
Interactive Select
Keyboard-navigable dropdown select with optional item descriptions and custom scrollbar.
select-example.tsx
Size
Quick Import
Example.tsxtsx
1import { Select } from "@rekodo/react";2
3export function Example() {4 return (5 <Select6 defaultValue="33"7 options={[8 { value: "33", label: "33⅓ RPM" },9 { value: "45", label: "45 RPM" },10 ]}11 />12 );13}API Reference
Props accepted by this component.
| Prop | Type | Default | Description |
|---|---|---|---|
| options | SelectOption[] | required | Array of { value, label, description?, disabled? } items. |
| value / defaultValue | string | "" | Controlled or uncontrolled selected value. |
| onValueChange | (value: string) => void | undefined | Fires when an option is chosen. |
| size | "sm" | "default" | "lg" | "default" | Trigger height and typography scale. |
| invalid / disabled | boolean | false | Validation or disabled state. |