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

    797
  • Infinite Ribbon

    Infinite Ribbon

    544
  • Shimmer Text

    Shimmer Text

    416
  • Dia Text

    Dia Text

    350
  • Icon Bar

    Icon Bar

    247
  • FAQ Pro

    FAQ Pro

    229
  • Verified Badge

    Verified Badge

    215
  • New Card

    New Card

    187

More in Forms

View all
  • Premium Auth

    Premium Auth

    524
  • Contact Card

    Contact Card

    1K
  • Book A Demo 1

    Book A Demo 1

    73
  • Login 1

    Login 1

    53
  • Form

    Form

    137
  • Card Studio

    Card Studio

    41
  • SignInPage

    SignInPage

    667
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.6K