Radio
A single choice out of a few on native radios, with descriptions, a dot that springs in and a ring that changes colour.
pixikit.com/docs/components/radio
Customize
Orientation
Side
Divided
Size
Disabled
Props
13| Name | Type | Default | Description |
|---|---|---|---|
legend | string | None | The question or title for the group. |
options | RadioOption[] | Required | The choices, in order. |
value | string | None | The chosen value, when you hold the state. |
defaultValue | string | None | The value chosen at first, when the group holds the state. |
onValueChange | (value: string) => void | None | Called with the value the user picks. |
name | string | None | The field name sent with a form. |
orientation | "vertical" | "horizontal" | "vertical" | Whether the options stack or sit in a row. |
side | "start" | "end" | "start" | Which side of the text the dot is on. |
divided | boolean | false | Draws a line between the rows of a vertical group. |
size | "sm" | "md" | "md" | The size of the dot. |
error | string | None | An error message. It marks the group invalid and is linked to it. |
disabled | boolean | false | Turns every option off. |
className | string | None |