OPUS/UI

Navigation

Checkbox

Checkbox with a drawn tick animation, indeterminate state, built-in label + description and Field wiring.

4 files · 231 locdeps: clsx, tailwind-merge

You agree to our Terms of Service and Privacy Policy.

Installation

With the shadcn CLI, pointing at this platform’s registry:

npx shadcn@latest add https://opusui.131199999.xyz/r/checkbox.json

Or offline, straight from your opus55 checkout (copies every file it needs):

node ../tailwind_component/opus55/scripts/add.mjs checkbox

Usage

import { Checkbox } from "@/components/opus/ui/checkbox";

<Checkbox label="Accept terms" checked={ok} onCheckedChange={setOk} />

API

PropTypeDefaultDescription
checked / defaultCheckedboolean | "indeterminate"—State.
onCheckedChange(c) => void—Change handler.
label / descriptionReactNode—Inline label (clickable) and helper text.
size"sm" | "md""md"Box size.

Command palette