inputs

Checkbox

Radix UI ベースのアクセシブルなチェックボックス。ラベルやエラー状態の表示に対応。

インポート

import { Checkbox } from '@stella-ds/react'

Props

Propデフォルト説明
size'sm' | 'md' | 'lg''md'Size preset
labelReactNodeundefinedLabel rendered beside the checkbox
errorbooleanfalseError state styling

Preview

使用例

With label

<Checkbox label="Accept terms and conditions" defaultChecked />
<Checkbox label="Required field" error />
Card
コンポーネント一覧
Dialog