UNPKG

@abgov/react-components

Version:

Government of Alberta - UI components for React

29 lines (28 loc) 832 B
import { ReactNode } from 'react'; import { GoabIconType, Margins } from '@abgov/ui-components-common'; interface WCProps extends Margins { leadingicon?: GoabIconType; trailingicon?: GoabIconType; action?: string; actionArgs?: string; actionArg?: string; testid?: string; } declare module "react" { namespace JSX { interface IntrinsicElements { "goa-link": WCProps & React.HTMLAttributes<HTMLElement>; } } } interface GoabLinkProps extends Margins { leadingIcon?: GoabIconType; trailingIcon?: GoabIconType; action?: string; actionArgs?: Record<string, unknown>; actionArg?: string; testId?: string; children: ReactNode; } export declare function GoabLink(props: GoabLinkProps): import("react/jsx-runtime").JSX.Element; export default GoabLink;