Radio Group

Set of interactive radio buttons where only one can be selected at a time.

This component inherits props from the Radio Group primitive and supports common margin props.

Contains all the parts of a radio group.

PropTypeDefault
asChildbooleanfalse
color"gray" | "purple" "gray"
variant"classic" | "surface" | "soft""surface"
size"1" | "2" | "3""2"

An item in the group that can be checked.

Use the size prop to control the radiobutton size.

Use the variant prop to control the visual style of the radio buttons.

Use the color prop to assign a specific color.

Use the highContrast prop to increase color contrast with the background.

Composing RadioGroup.Item within Text automatically centers it with the first line of text.

Use the native disabled attribute to create a disabled radiobutton.

Add helper text to provide additional context about the radio group.

Notification frequency
Choose how often you want to receive notifications.

Display validation messages along with helper text to provide feedback and context.

Notification frequency
Please select a notification frequency.Choose how often you want to receive notifications.

Combine radio buttons with tooltips to provide additional information about specific options.

Notification frequency