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';
const DOCUMENTS = [
{id: 'transactions', label: 'Transaction history'},
{id: 'statements', label: 'Account statements'},
{id: 'tax', label: 'Tax documents'},
{id: 'invoices', label: 'Invoices'},
];
const ALL_IDS = DOCUMENTS.map(d => d.id);
function CheckboxListSelectAllPattern() {
const [selected, setSelected] = useState<string[]>(['transactions']);
const allChecked = ALL_IDS.every(id => selected.includes(id));
const noneChecked = selected.length === 0;
const selectAllState = allChecked
? true
: noneChecked
? false
: ('indeterminate' as const);
return (
<CheckboxList label="Include in export" hasDividers>
<CheckboxListItem
label="Select all"
isChecked={selectAllState}
onCheck={checked => {
setSelected(checked ? [...ALL_IDS] : []);
}}
/>
{DOCUMENTS.map(doc => (
<CheckboxListItem
key={doc.id}
label={doc.label}
isChecked={selected.includes(doc.id)}
onCheck={checked => {
setSelected(prev =>
checked ? [...prev, doc.id] : prev.filter(v => v !== doc.id),
);
}}
/>
))}
</CheckboxList>
);
}
export default function CheckboxListSelectAllPatternDemo() {
return (
<div
data-astryx-theme="neutral"
data-theme="light"
style={{colorScheme: 'light', display: 'contents'}}>
<CheckboxListSelectAllPattern />
</div>
);
}















