Components · Form Controls
Binary checkbox input built on Radix UI.
import { Checkbox } from '@nexub/react';| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
| checked | boolean | — | — | The controlled checked state. |
| defaultChecked | boolean | — | — | The initial checked state when uncontrolled. |
| disabled | boolean | — | — | Disables the checkbox when true. |
| required | boolean | — | — | Marks the checkbox as required in a form. |
| onCheckedChange | (checked: boolean) => void | — | — | Callback fired when the checked state changes. |