Select

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.

Size

Quick Import

Example.tsxtsx
1import { Select } from "@rekodo/react";
2
3export function Example() {
4 return (
5 <Select
6 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.

PropTypeDefaultDescription
optionsSelectOption[]requiredArray of { value, label, description?, disabled? } items.
value / defaultValuestring""Controlled or uncontrolled selected value.
onValueChange(value: string) => voidundefinedFires when an option is chosen.
size"sm" | "default" | "lg""default"Trigger height and typography scale.
invalid / disabledbooleanfalseValidation or disabled state.