eds-tooltip

Explore the Interactive Component

Use the playground below to experiment with the component. Click the button to view the full Storybook deployment for additional examples and configurations.

eds-tooltip Open in Storybook

See It in Use with Code

Check out this practical implementation of component.

Wrap the trigger element in <eds-tooltip>: it is rendered in the default slot, and the content text appears on hover (position: top or bottom).

Directly in HTML

In React

Overview

EdsTooltip dynamically positions a tooltip centered above the slotted element. It shows on hover and on keyboard focus (focus-within), closes on Escape, and describes the slotted element via aria-describedby.

Properties

PropertyAttributeDescriptionTypeDefault
contentcontentThe content of the tooltip.stringundefined
positionposition"bottom" | "top"'top'

Dependencies

Used by

Graph

graph TD;
  eds-table --> eds-tooltip
  style eds-tooltip fill:#f9f,stroke:#333,stroke-width:4px

Built with StencilJS