import { default as React, ChangeEventHandler, ReactElement } from 'react'; import { RadioFieldProps } from '../RadioField'; export type RadioGroupProps = Readonly<{ /** * The name of the RadioGroup */ name: string; /** * The current value */ value: string | null; /** * The RadioInput(s) contained within the RadioGroup. */ children: ReactElement | ReactElement[]; /** * Handler that is called when the value changes. */ onChange: ChangeEventHandler; /** * The axis the RadioInput(s) should align with. * @default row */ direction?: 'row' | 'column'; /** * className for the element */ className?: string; }>; type Context = { name: string; onChange: ChangeEventHandler; value: string | null; }; export declare const RadioGroupContext: React.Context; /** * Handles a set of RadioField or RadioBox where no more than one of these component * can be checked at a time. */ export declare const RadioGroup: ({ name, className, value, children, onChange, direction, ...rest }: RadioGroupProps) => React.JSX.Element; export {}; //# sourceMappingURL=RadioGroup.d.ts.map