inputs
Checkbox
Accessible checkbox built on Radix UI with optional label and error state.
Import
import { Checkbox } from '@stella-ds/react'Props
| Prop | Type | Default | Description |
|---|---|---|---|
| size | 'sm' | 'md' | 'lg' | 'md' | Size preset |
| label | ReactNode | undefined | Label rendered beside the checkbox |
| error | boolean | false | Error state styling |
Preview
Examples
With label
<Checkbox label="Accept terms and conditions" defaultChecked />
<Checkbox label="Required field" error />