nice-ui
Version:
React design system, components, and utilities
32 lines (31 loc) • 897 B
TypeScript
import * as React from 'react';
import { AnchorPointComputeSpec } from '../../utils/popup/types';
export interface BasicTooltipProps extends React.AllHTMLAttributes<any> {
Component?: 'div' | 'span';
/**
* The tooltip content to show on hover. Make it `undefined` to disable the
* tooltip.
*/
renderTooltip?: () => React.ReactNode;
/**
* The anchor point to compute the tooltip position.
*/
anchor?: AnchorPointComputeSpec;
/**
* If true, text tooltip will be added CSS to not wrap it to new lines.
*/
nowrap?: boolean;
/**
* To manually control the tooltip, set the `show` props.
*/
show?: boolean;
/**
* Whether to animate the tooltip fade in.
*/
fadeIn?: boolean;
/**
* Keyboard shortcut.
*/
shortcut?: string;
}
export declare const BasicTooltip: React.FC<BasicTooltipProps>;