Checkbox
Native checkbox control for binary choices in forms.
Release notes and occasional product updates.
Installation
npx @glass-ui-kit/cli add checkboxUsage
Examples
Default
A minimal checkbox paired with a native label.
Field Pairing
Use Field, Label, and FieldDescription to keep checkbox controls aligned with the rest of your forms without manually wiring ids.
We only send messages when something important happens.
Disabled
The native disabled attribute handles interaction and styling state.
Styling
Checkbox is a native <input type="checkbox"> with glass-aware defaults. Use className as an escape hatch for one-off visual tweaks.
API Reference
| Prop | Type |
|---|---|
className | string |
Checkbox accepts the standard native <input type="checkbox"> props, including checked, defaultChecked, disabled, name, value, and onChange.