Origin UI

Checkbox

Forms 10

About

Enhanced checkbox

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Checkbox to your project and fits it to your theme.

Code

How Checkbox is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { Checkbox } from "@/components/ui/checkbox";
import { Label } from "@/components/ui/label";
import { useId } from "react";

function Component() {
  const id = useId();
  return (
    <div className="grid gap-3">
      <div className="flex items-center gap-2">
        <Checkbox id={`${id}-1`} />
        <Label htmlFor={`${id}-1`}>React</Label>
      </div>
      <div className="flex items-center gap-2">
        <Checkbox id={`${id}-2`} />
        <Label htmlFor={`${id}-2`}>Next.js</Label>
      </div>
      <div className="flex items-center gap-2">
        <Checkbox id={`${id}-3`} />
        <Label htmlFor={`${id}-3`}>Astro</Label>
      </div>
    </div>
  );
}


export { Component };


Dependencies

More by Origin UI

View all
  • Dialog

    Dialog

    1.3K
  • Avatar

    Avatar

    1K
  • useImageUpload

    useImageUpload

    955
  • usePagination

    usePagination

    639
  • Popover

    Popover

    390
  • Button

    Button

    385
  • Command

    Command

    349
  • Calendar [React Day Picker]

    Calendar [React Day Picker]

    273

More in Forms

View all
  • Premium Auth

    Premium Auth

    577
  • Login 1

    Login 1

    68
  • Contact Card

    Contact Card

    1.1K
  • Form

    Form

    18
  • Login Card

    Login Card

    36
  • Login 2

    Login 2

    15
  • Change Password Form

    Change Password Form

    11
  • Form

    Form

    3