Skip to content

Form Field: Radio Button

Type: radio

Group of buttons for single selection.

javascript
{
  id: 'gender',
  type: 'radio',
  label: 'Gender',
  options: ['Male', 'Female', { label: 'Other', value: 'other' }],
  required: true,
  defaultValue: ''
}
PropertyTypeDescription
optionsArray<string | {label, value}>List of available choices.
defaultValuestringThe value of the option selected by default.