FormSelect
セレクトボックスコンポーネント。children に <option> 要素を渡す。onChange は (value: string) => void 形式。
import { FormSelect } from "@blueai/ui"Examples
Basic
With Error
選択してください
Disabled
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| value* | string | — | 選択値 |
| onChange | (value: string) => void | — | 値変更ハンドラ |
| label | string | — | ラベルテキスト |
| error | string | — | エラーメッセージ |
| required | boolean | false | 必須マーク表示 |
| disabled | boolean | false | 無効状態 |
| children* | ReactNode | — | <option> 要素 |