Tooltip

Displays additional information on hover.

Import

import { Tooltip } from 'raw-ui';

Default

Hide arrow

Disabled

Placement

Set parent element

API

PropDescriptionTypeDefault
contentcontent of tooltipReact.ReactNode-
hideArrowhide tooltip arrowbooleanfalse
disableddisable tooltipbooleanfalse
placementposition of the tooltipTooltipPlacement'top'
strategyThe positioning strategy of popup'absolute' | 'fixed''absolute'
getPopupContainerset the parent element of popup rendering() => HTMLElement | null-
...native propsReact.HTMLAttributes-

Type

import { TooltipPlacement } from 'raw-ui';

TooltipPlacement

type TooltipPlacement =
  | 'top'
  | 'topLeft'
  | 'topRight'
  | 'left'
  | 'leftTop'
  | 'leftBottom'
  | 'bottom'
  | 'bottomLeft'
  | 'bottomRight'
  | 'right'
  | 'rightTop'
  | 'rightBottom';