メインコンテンツへスキップ
ホーム/コンポーネント/フォームと入力/セレクト

FormSelect

セレクトボックスコンポーネント。children に <option> 要素を渡す。onChange は (value: string) => void 形式。

import { FormSelect } from "@blueai/ui"

Examples

Basic
With Error

選択してください

Disabled

Props

PropTypeDefaultDescription
value*string選択値
onChange(value: string) => void値変更ハンドラ
labelstringラベルテキスト
errorstringエラーメッセージ
requiredbooleanfalse必須マーク表示
disabledbooleanfalse無効状態
children*ReactNode<option> 要素