Docs
Checkbox

Checkbox

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

Installation

Command

npx shadcn-ui@latest add checkbox

Usage

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

Examples

With text

You agree to our Terms of Service and Privacy Policy.

Disabled

Component checkbox-with-disabled not found in registry.

Form

You can manage your mobile notifications in the mobile settings page.

Select the items you want to display in the sidebar.