Radio

Provides single user input from a selection of options.

General

The basic Radio usage.

Preview
See code

Group

A group of radio components.

Preview
See code

Type

Differentiate states by color.

Preview
See code

Description

Description can be combined with other components.

Preview
See code

Disabled

Disable all radios.

Preview
See code

Row

Horizontal arrangement.

Preview
See code

APIs

Radio.Props

AttributeDescriptionTypeAccepted valuesDefault
checkedselected or not (in single)boolean-false
valueunique ident value (in group)string--
idnative attrstring--
disableddisable current radioboolean-false
typecurrent typeRadioTypesRadioTypesdefault
onChangechange event(e: RadioEvent) => void--
refforwardRefRef<HTMLInputElement | null>--
...native propsInputHTMLAttributes'id', 'className', ...-

Radio.Group.Props

AttributeDescriptionTypeAccepted valuesDefault
initialValueinitial valuestring--
valueselected child radiostring--
useRowhorizontal layoutboolean-false
disableddisable all radiosboolean-false
onChangechange event(value: string) => void--
...native propsHTMLAttributes'id', 'className', ...-

Radio.Description.Props[alias: Radio.Desc]

AttributeDescriptionTypeAccepted valuesDefault
...native propsHTMLAttributes'id', 'className', ...-

RadioTypes

type RadioTypes =
  | 'default'
  | 'primary'
  | 'secondary'
  | 'success'
  | 'warning'
  | 'error'
  | 'info'
Edit this page on GitHub

Previous

Progress

Next

Rating

MADE & DESIGNED WITHBY BRUNO ANDRADE
docs background gradient blue
docs background gradient violet