"use client";
import { CheckboxCard } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
title | ReactNode | — | Title (any content). |
className | string | — | Goes to the root <label> with style; ref, id and native attributes go to the input. |
description | ReactNode | — | Supporting text. |
leading | ReactNode | — | Content before the main content (icon, prefix). |
onCheckedChange | ( checked: boolean, event: ChangeEvent<HTMLInputElement>, ) => void | — | Called with the new checked state (and the change event). |
onValueChange | ( value: boolean, event: ChangeEvent<HTMLInputElement>, ) => void | — | Called with the new value (only when it changes). |
size | ComponentSize | — | Size from the shared scale (xs, sm, md, lg). |
tone | ComponentTone | — | Colour role (neutral, primary, danger, success, warning, info). |
trailing | ReactNode | — | Content after the main content (icon, suffix). |
variant | ComponentVariant | — | Emphasis (solid, secondary, soft, outline, ghost). |
titleReactNode
Title (any content).
classNamestring
Goes to the root <label> with style; ref, id and native attributes go to the input.
descriptionReactNode
Supporting text.
leadingReactNode
Content before the main content (icon, prefix).
onCheckedChange( checked: boolean, event: ChangeEvent<HTMLInputElement>, ) => void
Called with the new checked state (and the change event).
onValueChange( value: boolean, event: ChangeEvent<HTMLInputElement>, ) => void
Called with the new value (only when it changes).
sizeComponentSize
Size from the shared scale (xs, sm, md, lg).
toneComponentTone
Colour role (neutral, primary, danger, success, warning, info).
trailingReactNode
Content after the main content (icon, suffix).
variantComponentVariant
Emphasis (solid, secondary, soft, outline, ghost).
Other props are passed to the root element (InputHTMLAttributes<HTMLInputElement>), including className, style, id and aria-* attributes.
<CheckboxCard title="Enable sync" />