UNPKG

amotify

Version:

UI Component for React,NextJS,esbuild

43 lines (42 loc) 1.26 kB
/// <reference types="react" /> import { StyleProps, ReactElement } from '../@declares'; import $$ from 'jmini'; import { Box } from '../atoms'; import Sheet from './Sheet'; declare namespace Tooltips { type Methods = { __memoryID: string; open(p: Input): void; close(tipsID: string): void; closeALL(): void; notice(body: ReactElement, options?: { tipsID?: string; /** * If the tooltip belongs to a group, it can be closed together by closeALL or closeGroup. * 5seconds by default */ closeToSeconds?: number; }): void; Body: React.FC<Box.DefaultInput>; }; type Input = Sheet.CloseOptions & { tipsID?: string; tipsGroups?: string | string[]; nextToCursor?: boolean; gravityPoint?: number; hold_state?: boolean; content: ReactElement | { (): React.JSX.Element; }; openAfter?(): void; closeAfter?(): void; } & ({ event: any; parent?: $$.Args; } | { event?: any; parent: $$.Args; }) & StyleProps.BasicElement; } declare const Tooltips: Tooltips.Methods; export { Tooltips, Tooltips as default };