UNPKG

@jengaui/tooltip

Version:

Jenga UI Tooltip component in React

20 lines (17 loc) 784 B
import * as react from 'react'; import { DOMRefValue } from '@react-types/shared'; import { BaseProps, ContainerStyleProps, Styles } from 'tastycss'; import { AriaTooltipProps } from '@react-types/tooltip'; declare type Axis = 'top' | 'right' | 'bottom' | 'left'; declare type PlacementAxis = Axis | 'center'; interface JengaTooltipProps extends BaseProps, ContainerStyleProps, AriaTooltipProps { tipStyles?: Styles; showIcon?: boolean; placement?: PlacementAxis; isMaterial?: boolean; } /** * Display container for Tooltip content. Has a directional arrow dependent on its placement. */ declare let _Tooltip: react.ForwardRefExoticComponent<JengaTooltipProps & react.RefAttributes<DOMRefValue<HTMLDivElement>>>; export { JengaTooltipProps, _Tooltip as Tooltip };