Radio

Basic

Sizes

Set scales using scale prop like "xs", "sm", "lg" or "xl". The default scale is "base".

Disabled

Disable using disabled prop.

Accessibility

Radio uses Reakit Radio under the hood, it means it follows WAI-ARIA Radio Button/Group Pattern.

Read more about accessibility on Reakit.

API

useRadioState

See Reakit documentation.

Radio

PropertyTypeRequiredDefaultDescription
checkedbooleanfalse-Same as the `checked` attribute.
disabledbooleanfalse-Same as the HTML attribute.
focusablebooleanfalse-When an element is `disabled`, it may still be `focusable`. It works similarly to `readOnly` on form elements. In this case, only `aria-disabled` will be set.
stopIdstringfalse-Element ID.
valueanyfalse-Same as the value attribute.
scale
enum
false-
Show xstyled properties

Radio also includes a bunch of state properties, see Reakit documentation.

RadioGroup

PropertyTypeRequiredDefaultDescription
childrennodefalse-
aria-orientation
enum
false-Specify the orientation of the radio group.
Show xstyled properties