Checkbox

A control that lets users switch between selected and unselected states.

@radix-ui/react-checkbox

@lucide/react

Installation


1

Install the following dependencies:

npx shadcn@latest add https://sbthemes-storev2.vercel.app/r/checkbox.json

Examples


Disabled

With Label

Advanced Label


API Reference

This component is based on the <button> element and supports all of its props and adds:

PropTypeDefault
checkedbooleanfalse
disabledbooleanfalse