Component docs
Loading
"use client";
import { RadioCard } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
description | ReactNode | — | Supporting text. |
leading | ReactNode | — | Content before the main content (icon, prefix). |
onValueChange | (value: string, event: ChangeEvent<HTMLInputElement>) => void | — | Called with the new value (only when it changes). |
size | ComponentSize | — | Size from the shared scale (xs, sm, md, lg). |
title | ReactNode | — | Title (any content). |
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). |
descriptionReactNode
Supporting text.
leadingReactNode
Content before the main content (icon, prefix).
onValueChange(value: string, event: ChangeEvent<HTMLInputElement>) => void
Called with the new value (only when it changes).
sizeComponentSize
Size from the shared scale (xs, sm, md, lg).
titleReactNode
Title (any content).
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.
<RadioCard name="plan" value="pro" />