SubframeApp

Checkbox Group

Forms 5

About

Here is Checkbox Group component

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

Code

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

Usage.tsx

import Component from "@/components/ui/checkbox-group-1";

export default function CheckboxGroupBasic() {
  return (
    <div className="max-w-md rounded-lg p-4 ring-1 bg-white text-gray-900 ring-gray-200 dark:bg-gray-800 dark:text-gray-100 dark:ring-gray-700">
      <Component label="Preferences" helpText="Choose all that apply">
        <label className="flex items-center gap-2">
          <input type="checkbox" className="h-4 w-4 accent-indigo-600" defaultChecked />
          <span>Email notifications</span>
        </label>
        <label className="flex items-center gap-2">
          <input type="checkbox" className="h-4 w-4 accent-indigo-600" />
          <span>Product updates</span>
        </label>
        <label className="flex items-center gap-2">
          <input type="checkbox" className="h-4 w-4 accent-indigo-600" />
          <span>Weekly summary</span>
        </label>
      </Component>
    </div>
  );
}

More by SubframeApp

View all
  • Area Chart

    Area Chart

    116
  • Checkbox Card

    Checkbox Card

    19
  • Checkbox

    Checkbox

    19
  • Breadcrumb

    Breadcrumb

    13
  • Calendar

    Calendar

    9
  • Context Menu

    Context Menu

    6
  • Accordion

    Accordion

    5
  • Avatar

    Avatar

    3

More in Forms

View all
  • Premium Auth

    Premium Auth

    593
  • Contact Form

    Contact Form

    28
  • Form

    Form

    4
  • Login 1

    Login 1

    70
  • Book A Demo 1

    Book A Demo 1

    94
  • Contact Card

    Contact Card

    1.1K
  • HeroUI Field Error

    HeroUI Field Error

    13
  • Form [react-aria-components]

    Form [react-aria-components]

    19