Skip to content

Checkbox

You agree to our Terms of Service and Privacy Policy.
Status: Not accepted
Terminal window
npx skeci-ui add checkbox
import { Checkbox } from '@/components/ui/checkbox';
<Checkbox
label="Accept terms"
description="Agree to our terms and conditions."
onCheckedChange={(checked) => console.log(checked)}
/>
This is a more detailed explanation of the setting.
PropTypeDefaultDescription
checkedbooleanThe controlled checked state of the checkbox.
defaultCheckedbooleanfalseThe initial checked state when uncontrolled.
onCheckedChange(checked: boolean) => voidCallback fired when the state changes.
labelstringThe label text displayed next to the checkbox.
descriptionstringAdditional helper text displayed below the label.
disabledbooleanfalseWhether the checkbox is non-interactive.