Hextech UI

Checkbox

Live example

Checkbox

Installation

Terminal
npx shadcn@latest add https://hextech-ui.vercel.app/r/checkbox.json

API reference

These are the main Checkbox options. See the exported TypeScript types for inherited native or primitive props.

PropTypeDefault
checked / defaultCheckedbooleanfalse
indeterminatebooleanfalse
onCheckedChange(checked, details) => void—

Checked state

Use checked with onCheckedChange, or defaultChecked for local state. Keep a visible label beside the control. Indeterminate is a mixed visual state, so explain what the parent selection represents.