@abgov/react-components
Version:
Government of Alberta - UI components for React
39 lines (38 loc) • 1.18 kB
TypeScript
import { Margins } from '@abgov/ui-components-common';
import { JSX } from 'react';
interface WCProps extends Margins {
name?: string;
value?: string;
description?: string | React.ReactNode;
reveal?: React.ReactNode;
revealarialabel?: string;
label?: string;
maxwidth?: string;
disabled?: string;
checked?: string;
error?: string;
arialabel?: string;
}
declare module "react" {
namespace JSX {
interface IntrinsicElements {
"goa-radio-item": WCProps & React.HTMLAttributes<HTMLElement>;
}
}
}
export interface GoabRadioItemProps extends Margins {
value?: string;
label?: string;
name?: string;
description?: string | React.ReactNode;
reveal?: React.ReactNode;
revealAriaLabel?: string;
maxWidth?: string;
disabled?: boolean;
checked?: boolean;
error?: boolean;
children?: React.ReactNode;
ariaLabel?: string;
}
export declare function GoabRadioItem({ name, label, value, description, reveal, revealAriaLabel, maxWidth, disabled, checked, error, ariaLabel, children, mt, mr, mb, ml, }: GoabRadioItemProps): JSX.Element;
export default GoabRadioItem;