UikRadio

This is an alias component for <UikCheckbox radio type="radio" />

PropertyTypeRequiredDefault ValueDescription
childrenReact.Nodefalsenull
descriptionReact.Nodefalsenull
classNameStringfalsenullclassName, e.g. "my-custom-styling"
...restanyfalseOther properties passed down to the input element. See the code for more information.

UikRadio Examples

ComponentExample Code
<UikFormInputGroup>
  <UikRadio
    defaultChecked
    label="Option 1"
    name="rgroup"
  />
  <UikRadio
    label="Option 2"
    name="rgroup"
  />
</UikFormInputGroup>
<UikRadio
  description="Some description."
  label="Option"
/>
// other properties goes to input element directly
<UikRadio
  defaultChecked
  label="Toggle Me"
  name="is_hooman"
/>