Components
Checkbox
A control that allows the user to toggle between checked and not checked.
Usage
import { Checkbox } from "@murasakijs/ui";<Checkbox id="terms" />API Reference
Props
| Prop | Type | Default |
|---|---|---|
checked | boolean | "indeterminate" | — |
defaultChecked | boolean | "indeterminate" | — |
onCheckedChange | (checked: boolean | "indeterminate") => void | — |
disabled | boolean | false |
required | boolean | false |
name | string | — |
value | string | "on" |
Checkbox maps the familiar checked API to React Aria's accessible checkbox
state and interaction model.