Radio

The radio and radio group are used for selecting a single option from a list. If you need to have an unselected state, just add a radio button with a None option.

Component NameDevelopment Status
RadioDONE
Radio GroupDONE

Examples

You can find all examples for components developed in this module here.

Basic Radio Example

Very basic Radio component examples.

Property NameTypeDescription
idstringThe id attribute of the radio.
namestringThe name attribute of the radio.
labelnodeLabel of the radio.
valuestringThe value attribute of the radio.
onChange - () => {}funcFunction called when state changes Signature: ``` function(event: object, checked: boolean) => void ```
disabledboolWhen true, the radio is disabled.
checkedboolWhen true, the radio is checked.
isRequiredboolrequiredWhen true, the radio get the required attribute.

Radio Group Example

Controller RadioGroup component examples.

Properties

This component composes styled-system

Property NameTypeDescription
options - []arrayOfThe options for the radios of the Radio Group.
valuestringThe selected item value when controlled.
defaultValuestringThe default value of the Radio Group when uncontrolled.
onChange - () => {}funcFunction called when state changes.
isRequired - falseboolWhen true, the radio get the required attribute.