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
checkedboolean—The controlled checked state of the checkbox.
defaultCheckedbooleanfalseThe initial checked state when uncontrolled.
onCheckedChange(checked: boolean) => void—Callback fired when the state changes.
labelstring—The label text displayed next to the checkbox.
descriptionstring—Additional helper text displayed below the label.
disabledbooleanfalseWhether the checkbox is non-interactive.