Checkbox

A control that allows users to toggle between checked and unchecked states.

Import

Usage

Checkbox Props

AttributeTypeDefaultDescription
checkedboolean | 'indeterminate'-The controlled checked state of the checkbox.
defaultCheckedboolean-The default checked state (uncontrolled).
onCheckedChange(checked: boolean | 'indeterminate') => void-Callback when the checked state changes.
disabledbooleanfalseWhether the checkbox is disabled.
classNamestring-Additional CSS classes for styling.