sudharshanpanidev

Checkbox

Forms

About

An accessible native checkbox input with optional label, helper description text, and an indeterminate "select all" state.

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";

export default function CheckboxDemo() {
  return (
    <div
      className="flex w-full max-w-sm flex-col gap-4 rounded-lg p-6"
      style={{
        background: "var(--fp-color-bg)",
        color: "var(--fp-color-text)",
      }}
    >
      <Checkbox label="Notify customer by email" />
      <Checkbox label="Notify customer by email" defaultChecked />
      <Checkbox label="Select all orders" indeterminate />
      <Checkbox
        label="Notify customer by email"
        description="We'll send a receipt and tracking link."
      />
      <Checkbox label="Notify customer by email" disabled />
    </div>
  );
}

More by sudharshanpanidev

View all
  • Status Badge

    Status Badge

  • Button

    Button

  • Select

    Select

  • Empty State

    Empty State

  • Stepper

    Stepper

More in Forms

View all
  • Premium Auth

    Premium Auth

    504
  • Login 1

    Login 1

    52
  • Book A Demo 3

    Book A Demo 3

    83
  • Authentication Card

    Authentication Card

    47
  • Contact Card

    Contact Card

    1K
  • Book A Demo 1

    Book A Demo 1

    70
  • Book A Demo 4

    Book A Demo 4

    52
  • Form

    Form

    136