Checkbox

Checkboxes allow users to select multiple items from a list of individual items, or to mark one individual item as selected.

<Checkbox>
  <CheckboxIndicator />
  <Label>I accept the terms and conditions</Label>
</Checkbox>

Installation

npx shadcn@latest add @dotui/checkbox

Usage

Use Checkbox to allow users to select multiple items from a list of individual items, or to mark one individual item as selected.

import { Checkbox } from "@/components/ui/checkbox";
<Checkbox>I accept the terms and conditions</Checkbox>

Playground

Use the controls below to experiment with different checkbox props and see the live preview and code update.

<Checkbox>
  <CheckboxIndicator />
  <Label>Accept terms</Label>
</Checkbox>

API Reference

Checkbox

A checkbox allows a user to select multiple items from a list of individual items, or to mark one individual item as selected.

PropType
RefObject<HTMLInputElement | null>
boolean
boolean
boolean
boolean
boolean
ReactNode | function
function

Last updated on 1/13/2026

Built with passion by @mehdibha.