Checkbox
Checkbox is used to select or deselect a value.
Import
import { Checkbox } from '@sigx/daisyui';
Basic Usage
Loading preview...
With Label
Loading preview...
Colors
Loading preview...
Sizes
Loading preview...
Disabled
Loading preview...
Indeterminate
Loading preview...
Props
| Prop | Type | Default | Description |
|---|---|---|---|
model | Signal<boolean> | - | Two-way binding for checked state |
name | string | - | Name attribute for form submission |
size | "xs" | "sm" | "md" | "lg" | "xl" | "md" | Checkbox size |
color | "primary" | "secondary" | "accent" | "neutral" | "info" | "success" | "warning" | "error" | - | Checkbox color |
disabled | boolean | false | Disabled state |
indeterminate | boolean | false | Indeterminate state |
label | string | - | Label text displayed next to checkbox |
class | string | - | Additional CSS classes |
onChange | (checked: boolean) => void | - | Change event handler |