zweiundeins

Checkbox Group

Forms

About

A grouped set of checkboxes with an optional select-all control, per-choice descriptions and disabled states, ported from Starbase's sb-checkbox-group web 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 CheckboxGroup from "@/components/ui/checkbox-group";

export default function CheckboxGroupHorizontalDemo() {
  return (
    <div className="flex w-full max-w-md items-center justify-center rounded-xl bg-[#05070F] p-8">
      <CheckboxGroup
        label="Size"
        orientation="horizontal"
        defaultValue={["m"]}
        options={[
          { value: "s", label: "S" },
          { value: "m", label: "M" },
          { value: "l", label: "L" },
          { value: "xl", label: "XL", disabled: true },
        ]}
      />
    </div>
  );
}

More by zweiundeins

View all
  • Theme Switch

    Theme Switch

    11
  • Busy

    Busy

    7
  • Odometer

    Odometer

  • Meter

    Meter

  • Radio Group

    Radio Group

  • Gauge

    Gauge

  • QR Code

    QR Code

  • Alert

    Alert

More in Forms

View all
  • Premium Auth

    Premium Auth

    500
  • Login 1

    Login 1

    52
  • Book A Demo 3

    Book A Demo 3

    83
  • Authentication Card

    Authentication Card

    47
  • Contact Card

    Contact Card

    1K
  • Login Card

    Login Card

    32
  • Book A Demo 1

    Book A Demo 1

    69
  • Login 2

    Login 2

    7