Installation
Usage
Basic
Custom
Examples
Size
Radius
Reduce Motion
Validation
There’s an additional CheckboxField
component built specifically for easy and clean isomorphic form validation. It leverages Conform and Zod, providing a single source of truth for both frontend and backend while preserving native browser validation APIs (Conform works with any valid HTML form and captures form values using the FormData Web API). It also seamlessly integrates with the latest React 19 useActionState
hook:
Indeterminate
Disabled
Custom Icon & Styles
The component fully supports the original Radix API, allowing you to use custom icons or styling.
It will animate custom icon when the checkbox is checked or unchecked.
API Reference
Checkbox
Prop | Type | Default |
---|---|---|
size | enum | "default" |
radius | enum | ― |
invalid | boolean | ― |
reduceMotion | boolean | false |
Root
Prop | Type | Default |
---|---|---|
size | enum | "default" |
radius | enum | ― |
invalid | boolean | ― |
reduceMotion | boolean | false |
Support all Radix API
Indicator
Support all Radix API
Useful links: