Radio

Renders a custom radio.

Usage

import { Radio } from '@binarycapsule/ui-capsules';

Knobs 🎛

medium
<Radio
  onChange={function}
>
  Hello world
</Radio>

Props

NameDescription
checked
Required
boolean
The checked state of the radio.
onChange
Required
function
The function to handle the onChange event.
disabled
boolean(Default: false)
The disabled state of the radio.
size
"small" | "medium" | "large"(Default: "small")
The size of the radio.
children
string(Default: undefined)
The radio label.