@primer/react
Version:
An implementation of GitHub's Primer Design System using React
30 lines • 1.39 kB
TypeScript
import type { ChangeEvent, ChangeEventHandler, FC } from 'react';
import type React from 'react';
import type { CheckboxOrRadioGroupProps } from '../internal/components/CheckboxOrRadioGroup';
export type RadioGroupProps = {
/**
* An onChange handler that gets called when the selection changes
*/
onChange?: (selected: string | null, e?: ChangeEvent<HTMLInputElement>) => void;
/**
* The name used to identify this group of radios
*/
name: string;
} & CheckboxOrRadioGroupProps;
export declare const RadioGroupContext: React.Context<{
disabled?: boolean;
onChange?: ChangeEventHandler<HTMLInputElement>;
name: string;
} | null>;
declare const _default: FC<React.PropsWithChildren<RadioGroupProps>> & {
__SLOT__: symbol;
Caption: import("../utils/types").FCWithSlotMarker<{
className?: string;
} & {
children?: React.ReactNode | undefined;
}>;
Label: import("../utils/types").FCWithSlotMarker<React.PropsWithChildren<import("../internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupLabel").CheckboxOrRadioGroupLabelProps>>;
Validation: import("../utils/types").FCWithSlotMarker<React.PropsWithChildren<import("../internal/components/CheckboxOrRadioGroup/CheckboxOrRadioGroupValidation").CheckboxOrRadioGroupValidationProps>>;
};
export default _default;
//# sourceMappingURL=RadioGroup.d.ts.map