EF
EF Design System

Tooltip

Tooltips provide additional context on hover. They support four positions and feature a small arrow pointing to the trigger.

Positions

tsx
<Tooltip content="Edit this item" position="top">
  <button>Edit</button>
</Tooltip>

Interactive Demo

Select a position then hover the button to see the tooltip.

Icon Button with Tooltip

tsx
<Tooltip content="Edit" position="top">
  <IconButton icon={<EditIcon />} />
</Tooltip>

Props

PropTypeDefaultDescriptionRequired
childrenReactNode-Trigger elementNo
contentstring-Tooltip textNo
position"top" | "bottom" | "left" | "right""top"Where the tooltip appears relative to the triggerNo

Usage Guidelines

  • Use tooltips for supplementary information, not essential content.
  • Always provide tooltips on icon-only buttons for accessibility.
  • Keep tooltip text short -- ideally under 5 words.
  • Prefer top position unless space constraints require otherwise.