Skip to content
PixiKit

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
NameTypeDefaultDescription
legendstringNoneThe question or title for the group.
optionsRadioOption[]RequiredThe choices, in order.
valuestringNoneThe chosen value, when you hold the state.
defaultValuestringNoneThe value chosen at first, when the group holds the state.
onValueChange(value: string) => voidNoneCalled with the value the user picks.
namestringNoneThe 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.
dividedbooleanfalseDraws a line between the rows of a vertical group.
size"sm" | "md""md"The size of the dot.
errorstringNoneAn error message. It marks the group invalid and is linked to it.
disabledbooleanfalseTurns every option off.
classNamestringNone

More forms components in Pro

View all

Related