UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

36 lines (35 loc) 989 B
import * as React from 'react'; import { Tooltip } from './Tooltip'; import { ICalloutProps } from '../../index'; import { DirectionalHint } from '../../common/DirectionalHint'; /** * Tooltip component props. */ export interface ITooltipProps extends React.HTMLProps<HTMLDivElement | Tooltip> { /** * Properties to pass through for Callout, reference detail properties in ICalloutProps */ calloutProps?: ICalloutProps; /** * String to be passed to the tooltip */ content?: string; /** * Length of delay. Can be set to zero if you do not want a delay. * @default medium */ delay?: TooltipDelay; /** * Element to anchor the Tooltip to. */ targetElement?: HTMLElement; /** * Indicator of how the tooltip should be anchored to its targetElement. * @default DirectionalHint.topCenter */ directionalHint?: DirectionalHint; } export declare enum TooltipDelay { zero = 0, medium = 1, }