UNPKG

@abgov/react-components

Version:

Government of Alberta - UI components for React

27 lines (26 loc) 949 B
import { ReactNode, JSX } from 'react'; import { GoabTextMaxWidth, GoabTextHeadingElement, GoabTextTextElement, GoabTextSize, GoabTextColor, Margins } from '@abgov/ui-components-common'; interface WCProps extends Margins { as?: GoabTextTextElement | GoabTextHeadingElement; size?: GoabTextSize; maxwidth?: GoabTextMaxWidth; color?: GoabTextColor; } declare module "react" { namespace JSX { interface IntrinsicElements { "goa-text": WCProps & React.HTMLAttributes<HTMLElement>; } } } interface GoATextProps extends Margins { /** @deprecated Please use 'tag' property instead */ as?: GoabTextTextElement | GoabTextHeadingElement; tag?: GoabTextTextElement | GoabTextHeadingElement; size?: GoabTextSize; maxWidth?: GoabTextMaxWidth; color?: GoabTextColor; children: ReactNode; } export declare function GoabText(props: GoATextProps): JSX.Element; export default GoabText;