Skip to content

Checkbox

Base UI

A square checkbox on the same hard rule as everything else.

Install

$ npx shadcn@latest add https://spotcheckui.com/r/checkbox.json

Also installs @base-ui/react.

Usage

import { Checkbox } from "@/components/spotcheck/checkbox"

<Checkbox checked={weekends} onCheckedChange={setWeekends}>Include weekends</Checkbox>

Props

  • childrenReactNodeDefault —The visible label.
  • classNamestringDefault —

Keyboard

SpaceCheck or uncheck

Reduced motion

Nothing here animates.