Tooltip

Displays additional information on hover.

General

Basic usage.

Preview
See code
Tooltip

Trigger

Trigger by click.

Preview
See code
Click me

With Components

Combined with different components.

Preview
See code
1000+

Custom Content

You can customize the pop-up content.

Preview
See code
Top
Bottom

Types

Different state.

Preview
See code
Dark
Success
Warning
Error
Secondary

Variant

Special styles.

Preview
See code
Lite
No Arrow

Placements

There are 12 placement options available.

Preview
See code
topStart
top
topEnd
leftStart
rightStart
left
right
leftEnd
rightEnd
bottomStart
bottom
bottomEnd

APIs

Tooltip.Props

AttributeDescriptionTypeAccepted valuesDefault
texttext of pop-upstring React.ReactNode--
visiblevisible or notboolean-false
initialVisiblevisible on initialboolean-false
hideArrowhide arrow iconboolean-false
typepreset style typeTooltipTypes-default
placementposition of the tooltip relative to the targetPlacement-top
triggertooltip trigger mode'click' / 'hover'-hover
enterDelay(ms)delay before tooltip is shownnumber-100
leaveDelay(ms)delay before tooltip is hidden (only work in 'hover' mode)number-150
offset(px)distance between pop-up and targetnumber-12
portalClassNameclassName of pop-up boxstring--
onVisibleChangecall when visibility of the tooltip is changed(visible: boolean) => void--
...native propsHTMLAttributes'id' ...-

TooltipTypes

type TooltipTypes =
  | 'default'
  | 'secondary'
  | 'success'
  | 'warning'
  | 'error'
  | 'dark'
  | 'lite'

Placement

type Placement = 'top'
  | 'topStart',
  | 'topEnd',
  | 'left',
  | 'leftStart',
  | 'leftEnd',
  | 'bottom',
  | 'bottomStart',
  | 'bottomEnd',
  | 'right',
  | 'rightStart',
  | 'rightEnd',
Edit this page on GitHub

Previous

Toggle

MADE & DESIGNED WITHBY BRUNO ANDRADE
docs background gradient blue
docs background gradient violet