UNPKG

@abgov/react-components

Version:

Government of Alberta - UI components for React

33 lines (32 loc) 1.02 kB
import { GoabPopoverPosition, Margins } from '@abgov/ui-components-common'; import { ReactNode, JSX } from 'react'; interface WCProps extends Margins { maxwidth?: string; minwidth?: string; padded?: string; position?: GoabPopoverPosition; relative?: string; testid?: string; } declare module "react" { namespace JSX { interface IntrinsicElements { "goa-popover": WCProps & React.HTMLAttributes<HTMLElement>; } } } export interface GoabPopoverProps extends Margins { target?: ReactNode; testId?: string; maxWidth?: string; minWidth?: string; padded?: boolean; position?: GoabPopoverPosition; children: ReactNode; /*** * @deprecated This property has no effect and will be removed in a future version */ relative?: boolean; } export declare function GoabPopover({ target, testId, maxWidth, minWidth, padded, position, relative, children, mt, mr, mb, ml, }: GoabPopoverProps): JSX.Element; export default GoabPopover;