Checkbox#

Checkbox is used to select or deselect a value.

Import#

TSX
import { Checkbox } from '@sigx/daisyui';

Basic Usage#

TSX
Loading preview...

With Label#

TSX
Loading preview...

Colors#

TSX
Loading preview...

Sizes#

TSX
Loading preview...

Disabled#

TSX
Loading preview...

Indeterminate#

TSX
Loading preview...

Props#

PropTypeDefaultDescription
modelSignal<boolean>-Two-way binding for checked state
namestring-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
disabledbooleanfalseDisabled state
indeterminatebooleanfalseIndeterminate state
labelstring-Label text displayed next to checkbox
classstring-Additional CSS classes
onChange(checked: boolean) => void-Change event handler