Astryx

Astryx Checkbox List

Forms

About

Checkbox group container with field integration for label, description, and status.

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

Code

How Astryx Checkbox List 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 {CheckboxList, CheckboxListItem} from '@/components/ui/astryx-checkbox-list';
import {Badge} from '@astryxdesign/core/Badge';

function CheckboxListWithEndContent() {
  const [value, setValue] = useState<string[]>(['free']);
  return (
    <CheckboxList
      label="Add-on packages"
      value={value}
      onChange={setValue}
      hasDividers>
      <CheckboxListItem
        label="Free tier"
        value="free"
        description="Basic features included"
        endContent={<Badge variant="success" label="$0/mo" />}
      />
      <CheckboxListItem
        label="Pro tier"
        value="pro"
        description="Advanced analytics and integrations"
        endContent={<Badge variant="info" label="$9/mo" />}
      />
      <CheckboxListItem
        label="Enterprise"
        value="enterprise"
        description="Custom solutions and dedicated support"
        endContent={<Badge variant="purple" label="Custom" />}
      />
    </CheckboxList>
  );
}

export default function CheckboxListWithEndContentDemo() {
  return (
    <div
      data-astryx-theme="neutral"
      data-theme="light"
      style={{colorScheme: 'light', display: 'contents'}}>
      <CheckboxListWithEndContent />
    </div>
  );
}

Dependencies

More by Astryx

View all
  • Astryx Banner

    Astryx Banner

    59
  • Astryx Aspect Ratio

    Astryx Aspect Ratio

    31
  • Astryx Avatar

    Astryx Avatar

    30
  • Astryx Badge

    Astryx Badge

    29
  • Astryx Button Group

    Astryx Button Group

    27
  • Astryx Chat Composer Drawer

    Astryx Chat Composer Drawer

    20
  • Astryx Toggle Button

    Astryx Toggle Button

    17
  • Astryx Avatar Group

    Astryx Avatar Group

    9

More in Forms

View all
  • Login 1

    Login 1

    64
  • Premium Auth

    Premium Auth

    571
  • Contact Card

    Contact Card

    1.1K
  • Form

    Form

    18
  • Book A Demo 1

    Book A Demo 1

    91
  • Authentication Card

    Authentication Card

    52
  • Card Studio

    Card Studio

    47
  • Login Card

    Login Card

    35