@cimpress/react-components
Version:
React components to support the MCP styleguide
18 lines • 981 B
TypeScript
import { ChangeEvent, ReactNode } from 'react';
import { PublicComponentProps } from '../types';
export interface RadioGroupProps extends PublicComponentProps {
/** Pass <Radio /> elements as children to the RadioGroup */
children?: ReactNode;
/** The default radio group selection. If no default is defined, no radio button will be initially selected. */
defaultSelected?: any;
/** If true, radio options will display in a row instead of stacked. If there is not enough width for all options, radios will wrap. */
inline?: boolean;
/** Name to apply to the child radio buttons. */
name: string;
/** Callback function that is fired when the selected radio button changes. */
onChange?: (e: ChangeEvent<HTMLInputElement>, value: any) => void;
/** The current selected value of the radio group. */
valueSelected?: any;
}
export declare const RadioGroup: (props: RadioGroupProps) => JSX.Element;
//# sourceMappingURL=RadioGroup.d.ts.map