Edwin Vakayil

The Checkbox Group

Forms 31

About

This is checkbox group component

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

Code

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

Usage.tsx

"use client";

import { useState } from "react";
import {
  CheckboxGroup,
  type CheckboxGroupOption,
} from "@/components/ui/checkbox-group";

const options: CheckboxGroupOption[] = [
  {
    group: "Pressing",
    label: "High press",
    value: "press",
    description: "Close the alley when they receive on the turn",
  },
  {
    group: "Pressing",
    label: "Hold the half-spaces",
    value: "halfspaces",
    description: "Narrow tens, full-backs hold the width",
  },
  {
    group: "Pressing",
    label: "Back-three rehearsal",
    value: "backthree",
    description: "Not on the teamsheet for Saturday",
    disabled: true,
    disabledReason: "Available after the squad list is published.",
  },
  {
    group: "Set pieces",
    label: "Near-post corner trap",
    value: "corner-trap",
    description: "Front zone clear, weak-side winger seals the rebound lane",
  },
  {
    group: "Set pieces",
    label: "Late-run overload",
    value: "late-run",
    description: "Delay the extra runner until the second movement starts",
  },
];

export function CheckboxGroupPreview() {
  const [value, setValue] = useState<string[]>(["press"]);

  return (
    <div className="flex min-h-screen items-center justify-center p-4">
      <CheckboxGroup
        className="max-w-md"
        onChange={setValue}
        options={options}
        value={value}
      />
    </div>
  );
}

export default CheckboxGroupPreview;

Dependencies

More by Edwin Vakayil

View all
  • Origin Button

    Origin Button

    769
  • Infinite Ribbon

    Infinite Ribbon

    524
  • Shimmer Text

    Shimmer Text

    402
  • Dia Text

    Dia Text

    345
  • Icon Bar

    Icon Bar

    244
  • FAQ Pro

    FAQ Pro

    224
  • Verified Badge

    Verified Badge

    212
  • New Card

    New Card

    183

More in Forms

View all
  • Premium Auth

    Premium Auth

    500
  • Login 2

    Login 2

    7
  • Authentication Card

    Authentication Card

    47
  • Login 1

    Login 1

    52
  • Contact Card

    Contact Card

    1K
  • Login Form

    Login Form

    6
  • Form

    Form

    16
  • Book A Demo 3

    Book A Demo 3

    83