UNPKG

@massds/mayflower-react

Version:

React versions of Mayflower design system UI components

34 lines (33 loc) 1.01 kB
export interface InputRadioProps { /** The name of the input radio. */ name: string; /** The id of the input radio. Defaults to the value if not provided. */ id?: string; /** The value of the input radio */ value: string | number; /** The input radio label */ label: string; /** Whether the input radio is checked or not */ checked?: boolean; /** Whether radio input is required or not */ required?: boolean; /** Whether you want the radio input outlined */ outline?: boolean; /** OnChange function */ onChange?(...args: unknown[]): unknown; /** Whether the radio button is disabled or not */ disabled?: boolean; /** Whether the input is in an error state */ error?: boolean; } declare const InputRadio: { (props: InputRadioProps): any; defaultProps: { outline: boolean; required: boolean; onChange: () => void; disabled: boolean; error: boolean; }; }; export default InputRadio;