v14.2.0

Playroom

Github

Radio

View Source

Use radios to present a list of options where users can only make a single selection.

Copy
Edit
Copy
Edit

Props

disabledboolean

Disables the radio component.

labelstring

Determines if the radio should use an internal label or not.

checkedboolean

Checks the radio.

namestring

Maps to the internal input’s name prop.

valuemixed

Maps to the internal input’s value prop.

size'xs' | 'sm' | 'md' | 'lg' | 'xl'

Determines the size of the radio based on a scale.

onChange() => null

Maps to the internal input’s onChange prop.

onFocus() => null

Maps to the internal input’s onFocus prop.

onBlur() => null

Maps to the internal input’s onBlur prop.

  • Props
PreviousNumberFieldNextRangeSlider