Components
GlassCheckbox
A glassmorphism-styled checkbox powered by Radix UI with optional label support.
Preview
Usage
Without Label
Controlled
Disabled
Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | — | Optional label rendered next to the checkbox |
id | string | — | HTML id, links the label for accessibility |
checked | boolean | "indeterminate" | — | Controlled checked state |
defaultChecked | boolean | — | Initial checked state (uncontrolled) |
onCheckedChange | (checked: boolean | "indeterminate") => void | — | Callback when state changes |
disabled | boolean | false | Disables the checkbox |
All Radix Checkbox.Root props are also accepted.