Components
Checkbox
A control that toggles between checked and unchecked.
Usage
With @flagon-io/ui installed (see Installation), import it directly.
import { Checkbox, Label } from "@flagon-io/ui";
<div className="flex items-center gap-2">
<Checkbox id="terms" />
<Label htmlFor="terms">Accept terms</Label>
</div>Prefer to own the code?
You don’t have to install the package - you can copy this component into your project with the shadcn CLI and edit it freely.
npx shadcn@latest add https://ui.flagon.io/r/checkbox.json