UNPKG

@onesy/ui-react

Version:
47 lines (46 loc) 1.44 kB
import React from 'react'; import { IModal } from '../Modal/Modal'; import { IElement, IElementReference, IHTMLElement, IMethodTransition, IPropsAny } from '../types'; export declare type ITooltip = Omit<IModal, 'maxWidth'> & { open?: boolean; openDefault?: boolean; name?: IElement; label?: IElement; parent?: IHTMLElement; position?: 'top' | 'left' | 'bottom' | 'right'; switch?: boolean; alignment?: 'start' | 'center' | 'end'; portal?: boolean; fullWidth?: boolean; maxWidth?: 'xxs' | 'xs' | 'sm' | 'rg' | 'lg' | 'xl' | 'xxl' | 'unset'; arrow?: boolean; anchor?: DOMRect; anchorElement?: IHTMLElement; noMargin?: boolean; classNameSwitch?: string; transformOrigin?: string; transformOriginSwitch?: string; transformOriginRtl?: string; transformOriginRtlSwitch?: string; click?: boolean; touch?: boolean; longPress?: boolean; hover?: boolean; focus?: boolean; inset?: boolean; nowrap?: boolean; follow?: boolean; interactive?: boolean; elevation?: boolean; onOpen?: () => any; onClose?: () => any; onExited?: IMethodTransition; TransitionComponent?: IElementReference; TransitionComponentProps?: IPropsAny; AppendProps?: IPropsAny; ModalProps?: IPropsAny; LabelProps?: IPropsAny; LabelTextProps?: IPropsAny; }; declare const Tooltip: React.FC<ITooltip>; export default Tooltip;