Skip to main content

Examples

Default

Checked

With Label

All States

Disabled

Props

Checkbox

A checkbox input with optional label and helper text. Supports checked, unchecked, and indeterminate states. The ref type is intentionally HTMLInputElement (not HTMLButtonElement) for form-library compatibility — libraries like react-hook-form call register() which expects an HTMLInputElement ref. A hidden <input> is synced to the Radix checkbox state via useImperativeHandle.
string
Descriptive text displayed below the label.
string
Label text displayed next to the checkbox.
"small" | "16" | "20" | "default"
default:"20"
Size variant.

Exported types

Also exported from @fanvue/ui: CheckboxProps, CheckboxSize.
Setup: Installation · Theming