Components
Select
Choose one value from a known list. Prefer Select over free-text Input when options are finite.
When to use
- Project visibility, payment method, client picker, filter dropdowns.
- Use when options are short enough to scan (roughly under ~20 visible without search).
- For searchable long lists, use a combobox pattern instead of a plain Select.
Examples
Default
Trigger height matches Input (h-9). Stretch to field width in forms.
Compact
size=sm for denser toolbars and filters.
Best practice
Do
- ✓Label the field; placeholder alone is not enough.
- ✓Set a sensible default when one option is most common (e.g. 60 minutes).
- ✓Keep menu items sentence-case and scannable.
Don’t
- ×Nest Selects inside awkward overflow parents without checking mobile Sheets (menus use z-120).
- ×Use Select for binary on/off , use Switch or Checkbox instead.
components/ui/select.tsx · popper · z-120 above sheets
Memorisely