GitHub 560+

Checkbox

A control that allows the user to toggle between checked and not checked.

By clicking this checkbox, you agree to the terms and conditions.

Installation

npx shadcn@latest add @fulldev/checkbox

Usage

import { Checkbox } from "@/components/ui/checkbox"
<Checkbox />

Notes

  • Pair Checkbox with Label for simple cases, or use Field when you need descriptions, validation, or grouped controls.
  • Use the native disabled attribute to prevent interaction and aria-invalid when the control should display an error state.
  • For multi-line rows, wrap the label and supporting text together so the control stays easy to scan.

API Reference

See the GitHub source code for more information on props.