Component docs
Loading
"use client";
import { Radio } from "@pixxl-tools/components";| Prop | Type | Default | Description |
|---|---|---|---|
label | ReactNode | — | Visible label (also the accessible name). |
onValueChange | (value: string, event: ChangeEvent<HTMLInputElement>) => void | — | Called with the new value (only when it changes). |
labelReactNode
Visible label (also the accessible name).
onValueChange(value: string, event: ChangeEvent<HTMLInputElement>) => void
Called with the new value (only when it changes).
Other props are passed to the root element (InputHTMLAttributes<HTMLInputElement>), including className, style, id and aria-* attributes.
<Radio label="candraw" />