Components
Loading preview...
A selectable control for binary choices, form options, indeterminate states, labels, and validation messaging.
npx shadcn@latest add https://21st.dev/r/hero_ui/heroui-checkbox"use client";
import { Checkbox, Description, Label } from "@/components/ui/heroui-checkbox";
export default function VariantsDemo() {
return (
<div className="flex min-h-screen w-full items-center justify-center overflow-hidden bg-background p-8">
<div className="flex flex-col gap-4">
<Checkbox defaultSelected color="primary">
<Label>Primary variant</Label>
<Description>Primary checkbox</Description>
<Description>Standard styling with default background</Description>
</Checkbox>
<Checkbox defaultSelected color="secondary">
<Label>Secondary variant</Label>
<Description>Secondary checkbox</Description>
<Description>Lower emphasis variant for use in surfaces</Description>
</Checkbox>
</div>
</div>
);
}
export { VariantsDemo };