UNPKG

@abgov/react-components

Version:

Government of Alberta - UI components for React

27 lines (26 loc) 848 B
import { GoabTooltipHorizontalAlignment, GoabTooltipPosition, Margins } from '@abgov/ui-components-common'; import { ReactNode, JSX } from 'react'; interface WCProps extends Margins { position?: GoabTooltipPosition; content?: string; testid?: string; halign?: GoabTooltipHorizontalAlignment; maxwidth?: string; } declare module "react" { namespace JSX { interface IntrinsicElements { "goa-tooltip": WCProps & React.HTMLAttributes<HTMLElement>; } } } export interface GoabTooltipProps extends Margins { position?: GoabTooltipPosition; content?: string | ReactNode; hAlign?: GoabTooltipHorizontalAlignment; testId?: string; maxWidth?: string; children?: ReactNode; } export declare function GoabTooltip(props: GoabTooltipProps): JSX.Element; export default GoabTooltip;