Select
The Select component allows users to choose one option from a dropdown list with support for form state management, actions, and validation feedback.Props
| Prop | Type | Default | Description |
|---|---|---|---|
options | array | string | Required | Options array or comma-separated string |
name | string | - | Field name for form state management |
label | string | - | Select label |
placeholder | string | "Select an option..." | Placeholder text |
value | string | - | Controlled selected value |
defaultValue | string | - | Initial selected value |
required | boolean | false | Whether field is required |
disabled | boolean | false | Disabled state |
action | object | - | Action to execute on selection change |
messageFormat | string | - | Custom message format (use {value} placeholder) |
block | boolean | false | Full width display |
error | string | - | Error message to display |
helperText | string | - | Helper text below select |
radius | string | number | 12 | Border radius: sm, md, lg, xl, or number |
size | string | "md" | Size variant: sm, md, lg |
Options Format
Options can be provided as an array of objects or a comma-separated string:Examples
Basic Select
Simple String Options
With Default Value
With Descriptions
Required Field
With Error State
With Helper Text
Sizes
With Action on Change
Form State Management
When used withname prop, select updates form state:

