• Radio input form control

    Parameters

    • props: PropsWithChildren<RadioProps>
    • Optional context: any

    Returns null | ReactElement<any, any>

    Example

    <Radio
    name="numbers"
    label="Numbers"
    options={[{ value: '1', label: 'One' }, { value: '2', label: 'Two' }]}
    value={'1'}
    onChange={e => console.log(e)}
    />

Generated using TypeDoc