UNPKG

@cbinsights/fds

Version:
25 lines (24 loc) 828 B
import React from 'react'; export interface RadioProps { /** * html `name` attribute. * Use to create radio groups. */ name: string; /** html `label` element content */ label: string; /** If the supplied `label` prop should be rendered to the screen. */ showLabel?: boolean; /** `true` checks the radio by default */ defaultChecked?: boolean; /** Disables form field when `true` */ disabled?: boolean; /** The radio input `checked` attribute */ checked?: boolean; /** The radio input `value` attribute */ value: string; /** The radio input `onChange` attribute */ onChange?: React.ChangeEventHandler<HTMLInputElement>; } declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>; export default Radio;