import type { Meta, StoryObj } from "@storybook/react" import { CheckboxCards } from "./CheckboxCard" /** * Displays a group of selectable cards with checkboxes. * * ## Props * - `Root`: Container for the checkbox cards group * - `Item`: Individual checkbox card item * * ### Root Props * - `columns`: "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | string (default: "1") * - `gap`: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | string (default: "4") * - `size`: "1" | "2" | "3" (default: "2") * - `variant`: "surface" | "classic" (default: "surface") * - `color`: "gray" | "gold" | "bronze" | "brown" | "yellow" | "amber" | "orange" | "tomato" | "red" | "ruby" | "crimson" | "pink" | "plum" | "purple" | "violet" | "iris" | "indigo" | "blue" | "cyan" | "teal" | "jade" | "green" | "grass" | "lime" | "mint" | "sky" * - `highContrast`: boolean */ const meta = { title: "base/form/CheckboxCard", component: CheckboxCards.Root, tags: ["autodocs"], parameters: { layout: "centered", }, } satisfies Meta export default meta type Story = StoryObj /** * Basic checkbox cards with different options. */ export const Default: Story = { render: () => (

Basic Plan

Perfect for getting started

Pro Plan

Great for growing teams

Enterprise Plan

For large organizations

), } /** * Checkbox cards with different sizes. */ export const Sizes: Story = { render: () => (

Small (1)

Option 1

Small card

Option 2

Small card

Option 3

Small card

Medium (2)

Option 1

Medium card

Option 2

Medium card

Option 3

Medium card

Large (3)

Option 1

Large card with more content

Option 2

Large card with more content

Option 3

Large card with more content

), } /** * Checkbox cards with different variants. */ export const Variants: Story = { render: () => (

Surface Variant

Surface Card 1

Elevated appearance with border

Surface Card 2

Elevated appearance with border

Classic Variant

Classic Card 1

Traditional card styling

Classic Card 2

Traditional card styling

), } /** * Checkbox cards with different colors. */ export const Colors: Story = { render: () => (

Blue Theme

Professional and trustworthy

Blue Theme

Professional and trustworthy

Green Theme

Success and growth

Green Theme

Success and growth

Purple Theme

Creative and innovative

Purple Theme

Creative and innovative

), } /** * Checkbox cards with different column layouts. */ export const ColumnLayouts: Story = { render: () => (

1 Column

Single Column Layout

Full width card for important options

2 Columns

Option A

Two column layout

Option B

Two column layout

3 Columns

Option A

Three column layout

Option B

Three column layout

Option C

Three column layout

4 Columns

A

Four columns

B

Four columns

C

Four columns

D

Four columns

), } /** * Pricing plan selection. */ export const PricingPlans: Story = { render: () => (

Basic

$9/month
  • ✓ 1 user
  • ✓ 10 projects
  • ✓ Basic support
Perfect for individuals

Pro

$29/month
  • ✓ 10 users
  • ✓ Unlimited projects
  • ✓ Priority support
  • ✓ Advanced features
Great for teams

Enterprise

$99/month
  • ✓ Unlimited users
  • ✓ Unlimited projects
  • ✓ 24/7 support
  • ✓ Custom integrations
  • ✓ Dedicated account manager
For large organizations
), } /** * Feature selection. */ export const FeatureSelection: Story = { render: () => (
📊

Analytics Dashboard

Advanced insights

Get detailed analytics and insights about your data with customizable dashboards and reports.

Workflow Automation

Save time

Automate repetitive tasks and streamline your workflows with powerful automation tools.

🔒

Enhanced Security

Enterprise-grade

Advanced security features including SSO, 2FA, and compliance with industry standards.

💬

Priority Support

24/7 assistance

Get priority access to our support team with faster response times and dedicated assistance.

), } /** * High contrast checkbox cards. */ export const HighContrast: Story = { render: () => (

Normal Contrast

Standard appearance

Normal Contrast

Standard appearance

High Contrast

Enhanced accessibility

High Contrast

Enhanced accessibility

), }