Edit page

Tooltip

Tooltip allows users to add an element at a target position when the user hovers over an element. We extend the react-popper library, view the documentation for a more complete list of available props.

Import Syntax

Basic Usage

Tooltip Placement

placement="right"
placement="top"
placement="left"
placement="bottom"

Component in Tooltip

Delayed Tooltip

Programatically Open Tooltip

I'm always open because I have the 'open' prop

Tooltip on Other Components

Label With Tooltip
Bridge Club, 1954
Florida, January 1954

Card with Image

Cards can have full-bleed images with optional captions.

Props

PropertyTypeRequiredDefaultDescription
titleNodefalse[Empty String]Nodes to be used as Tooltip content.
placementEnumfalseundefinedPlacement of the popover in relation to the target. The Tooltip will override the placement if there is no room. If this property is not set, the Tooltip will position itself wherever there is room.
transitionDurationNumberfalse200Duration of animation in milliseconds.
enterDelayNumberfalseundefinedDelay (in milliseconds) before the Tooltip will show. Prop overrides the value specified in the theme (0ms).
childrenNodefalse-Nodes to be used as the target of the Tooltip.
openBoolfalse-Boolean to programatically control the visibility of the Tooltip
positionFixedBoolfalse-Uses `position: fixed` on the Tooltip, allowing it to show up outside of containers that have `overflow: hidden`.
styleObjectfalse-Apply styles to the Tooltip element.
arrowStyleObjectfalse-Apply styles to the Tooltip arrow element.
targetWrapperStyleObjectfalse-Apply styles to the Tooltip target wrapper element.
popperModifiersObjectfalse-Modifiers to be passed to the Popper element