Checkbox
Boolean toggle input with indeterminate state
Accessibility
- Pair the checkbox with visible text or an aria-label so its purpose is announced.
Styled quick start
Copy this entrypoint first. It includes the imports required to get the component on screen.
Import options
Root package
ts
import { Checkbox } from '@dryui/ui' Per-component subpath
ts
import { Checkbox } from '@dryui/ui/checkbox' API
Props, CSS variables, and the public data attributes you can target when styling.
| Prop | Type | Description | Default | Required | Bindable |
|---|---|---|---|---|---|
| size | smmdlg | Size preset affecting density, spacing, or typography. | 'md' | — | — |
| checked | boolean | Current checked state for controlled or bindable usage. | false | — | ✓ |
| indeterminate | boolean | — | false | — | — |
| disabled | boolean | Prevents interaction and applies disabled styling. | false | — | — |