Radio Group

This input has a customized API to handle a radio list input type.

import { RadioGroup, RadioOption } from "@adeattwood/react-form";
<RadioGroup attribute="pickOne" options={options}>
{() => (
<RadioOption>
{({ props, label }) => (
<div key={props.id}>
<input {...props} />
<label htmlFor={props.id}>{label}</label>
</div>
)}
</RadioOption>
)}
</RadioGroup>