@abgov/react-components
Version:
Government of Alberta - UI components for React
36 lines (35 loc) • 1.17 kB
TypeScript
import { JSX } from 'react';
import { GoabRadioGroupOnChangeDetail, GoabRadioGroupOrientation, Margins } from '@abgov/ui-components-common';
export * from './radio';
interface WCProps extends Margins {
ref: React.RefObject<HTMLElement | null>;
name: string;
value?: string;
id?: string;
orientation?: GoabRadioGroupOrientation;
disabled?: string;
error?: string;
arialabel?: string;
testid?: string;
}
declare module "react" {
namespace JSX {
interface IntrinsicElements {
"goa-radio-group": WCProps & React.HTMLAttributes<HTMLElement>;
}
}
}
export interface GoabRadioGroupProps extends Margins {
name: string;
value?: string;
id?: string;
disabled?: boolean;
orientation?: GoabRadioGroupOrientation;
testId?: string;
error?: boolean;
ariaLabel?: string;
children?: React.ReactNode;
onChange?: (detail: GoabRadioGroupOnChangeDetail) => void;
}
export declare function GoabRadioGroup({ name, value, children, orientation, disabled, error, id, testId, ariaLabel, mt, mr, mb, ml, onChange, }: GoabRadioGroupProps): JSX.Element;
export default GoabRadioGroup;