Edit page

Radio

Radios allow the user to select only one option from a set.

Import Syntax

Basic Usage

Some Radios:

Advanced Usage

Horizontal Radio List:
horizontal
Radios with Error:You can display an error too!
error

with Formik

{
  "subscription": "user"
}

Props

PropertyTypeRequiredDefaultDescription
childrenNodefalse-The text label for the Radio.
valueStringfalse-The form value for this Radio button.
nameStringfalse-The name to be shared among Radio buttons in a group.
checkedBoolfalse-Whether the Radio button is currently checked.
onChangeFuncfalse-Event called when the Radio button value should be toggled.