Skip to main content

Radio

Import

import { Radio, RadioGroup } from "@sparrowengg/twigs-react";

Usage

Result
Loading...
<RadioGroup defaultValue="robin">
  <Radio value="robin"> Robin </Radio>
  <Radio value="falcon"> Falcon </Radio>
  <Radio value="raven"> Raven </Radio>
</RadioGroup>

Props

PropertyDescriptionTypeDefault
checkedstate of the radiobooleanfalse
defaultCheckedUncontrolled default state of Switchboolean
disabledbooleanfalse
sizeSize of the Switchsm mdsm
onChangeCallback function when Switch is clickedfunction