Documentation Index
Fetch the complete documentation index at: https://araf.badr.co.id/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Select country▾
DefaultIndonesia▾
FocusSelect department▾
⚠ Please select a departmentInstallation
Usage
Variants
Basic Select
Select country▾
With Selected Value
Indonesia▾
Grouped Options
Select role▾
MANAGEMENT
Administrator
Manager
OPERATIONAL
Editor
Viewer (disabled)
Error State
Select department▾
Please select a departmentDisabled
Select region▾
States
| State | Border | Ring | Helper text color |
|---|---|---|---|
| Default | #D0D5DD | — | #667085 |
| Focus | #0479CE | #CDE4F5 4px | — |
| Error | #DC2626 | — | #B42318 |
| Disabled | #E5E7EB | — | — |
API Reference
Select (Root)
Controlled selected value.
Callback fired when the selected value changes.
Uncontrolled default selected value.
Disables the entire select component.
SelectTrigger
Label displayed above the trigger.
Placeholder text shown when nothing is selected.
Validation state. Values:
default · error · disabledHelper or error message displayed below the trigger.
SelectItem
The option value (required).
Disables this specific option.
Accessibility
- Select uses
role="combobox"on the trigger androle="listbox"on the content - Keyboard navigation: Arrow keys move between options, Enter/Space selects, Escape closes
- Selected option is marked with
aria-selected="true" - Disabled options use
aria-disabled="true"and are skipped by keyboard navigation - Label is associated with the trigger via
aria-labelledby - Error messages are linked via
aria-describedby
Do’s & Don’ts
Do
- Use Select for 5+ options where a Radio Group would be too long
- Always include a descriptive label above the trigger
- Use grouped options when the list has multiple logical categories
- Show an error state with a clear helper text on validation failure
Don't
- Don’t use Select for fewer than 3–4 options — use Radio Group instead
- Don’t use placeholder as a substitute for a label
- Don’t disable the entire Select without explaining why
- Don’t put more than 20 options in a flat list — use grouping or search