Forms
Select
Styled native select dropdown with label, error state, three sizes, and placeholder support
Quick Preview
Installation
// Copy the Select component fromsrc/components/forms/Select.tsx
Usage
import { Select } from '@/components/forms/Select'const options = [{ value: 'th', label: 'Thailand' },{ value: 'us', label: 'United States' },]<Selectoptions={options}placeholder="Select a country"label="Country"/>
Examples
Error State
Please select your country.
Sizes
Disabled
Prompt Preview
Copy a prompt that recreates this UI
Paste this into your AI coding assistant to generate code that closely matches the reference, including color, size, shape, typography, spacing, and polish.
Copy-ready AI prompt
Starts from the current visual reference and project constraints.
Tweak only product-specific copy or data after the first generation pass.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
options* | SelectOption[] | - | Array of { value, label, disabled? } |
placeholder | string | - | Placeholder option when nothing is selected |
label | string | - | Label text above the select |
error | string | - | Error message shown below |
size | "sm" | "md" | "lg" | "md" | Height and text size |
disabled | boolean | - | Disable the select |
Features
- โCustom styled arrow icon
- โLabel and error message
- โThree sizes
- โPlaceholder option
- โKeyboard accessible
- โforwardRef support
- โClient Component