Cnippet

Checkbox with Label

Forms

About

A checkbox paired with a label for accepting terms and conditions in a form.

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

Code

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

Usage.tsx

import { Checkbox } from "@/components/ui/v-checkbox-1-utils/checkbox";
import { Label } from "@/components/ui/v-checkbox-1-utils/label";

export default function Default() {
  return (
    <div className="flex min-h-64 w-full items-center justify-center p-8">
      <div className="flex flex-col gap-3">
        <Label>
          <Checkbox defaultChecked />
          Terms
        </Label>
        <Label>
          <Checkbox />
          Newsletter
        </Label>
        <Label>
          <Checkbox defaultChecked />
          Alerts
        </Label>
        <Label>
          <Checkbox />
          Updates
        </Label>
        <Label>
          <Checkbox defaultChecked />
          Offers
        </Label>
        <Label>
          <Checkbox />
          Cookies
        </Label>
      </div>
    </div>
  );
}

More by Cnippet

View all
  • Team

    Team

    1.4K
  • Davincho Hero-1

    Davincho Hero-1

    716
  • Aero Hero-3

    Aero Hero-3

    632
  • Random Letter Swap Navigation

    Random Letter Swap Navigation

    586
  • Features

    Features

    539
  • Services with Animated Hover Modal

    Services with Animated Hover Modal

    492
  • Blogs

    Blogs

    406
  • Aero Hero-1

    Aero Hero-1

    387

More in Forms

View all
  • Form

    Form

    5
  • Premium Auth

    Premium Auth

    596
  • Form

    Form

    22
  • Book A Demo 1

    Book A Demo 1

    94
  • Contact Card

    Contact Card

    1.1K
  • Contact Form

    Contact Form

    28
  • Login 1

    Login 1

    70
  • Login Card

    Login Card

    36

Explore more

Part of Cnippet — browse the full library on 21st.dev.