Radio
import Radio from "@intility/bifrost-react/Radio";Basic radio buttons
For convenience, <Radio> is provided as an alias for
<Checkbox type="radio"> and supports the same props.
Group by name for mutually exclusive radio buttons.
<Radio name='radioDemo' label='NRK P1' />
<Radio name='radioDemo' label='P4' />
<Radio name='radioDemo' label='NRJ' />
<Radio name='radioDemo' label='Radio Norge' />
Group label
If you want to label a group, use <fieldset> and <legend>.
This example also uses <Grid> since <Radio> is an inline
element by default.
<fieldset className="bf-fieldset">
<legend className="bf-label">Choose a radio station</legend>
<Grid gap={0}>
<Radio name="radioDemo" label="NRK P1" />
<Radio name="radioDemo" label="P4" />
<Radio name="radioDemo" label="NRJ" />
<Radio name="radioDemo" label="Radio Norge" />
</Grid>
</fieldset>
Button style
Use button and small props to display as a button.
<Radio button label="Button style" />
<Radio button small label="Small button style" />