RadioCard
import RadioCard from "@intility/bifrost-react/RadioCard";For convenience, <RadioCard> is provided as an alias for
<CheckboxCard type="radio">. Otherwise, it functions
exactly the same as <CheckboxCard>.
Basic usage
<RadioCard name="radioDemo" label="Tasty walnut">
Tasty walnut pesto tart farro platter elderberry cookies Italian
pepperoncini cozy cinnamon oatmeal
</RadioCard>
<RadioCard name="radioDemo" label="Lemon">
Lemon red lentil soup dessert lemon tahini dressing golden cayenne
pepper springtime strawberry
</RadioCard>
See <CheckboxCard> for more examples.
Sandbox
You can bind a RadioCard to a boolean state using the checked prop and update
your state every time the onChange event is triggered.