Tooltip
Tooltip provides contextual information without disrupting the user's workflow. It supports multiple trigger events, smart positioning, and accessibility features for an inclusive experience.
Examples
(4)Properties
(17)Playground
Advanced
title: Advanced Tooltip Features description: Advanced tooltip options including delays, wrapped labels, width control, and the object form of the tooltip prop. tags: ["advanced", "delays", "wrapping", "maxWidth", "controlled", "custom-color", "width"]
title: Delays and Content category: behavior order: 40 tags: [delays, wrapping] highlightLines: [11-44] status: stable since: 1.0.0 hidden: false
Tune
openDelay/closeDelay to reduce flicker. Long labels wrap on their own — use maxWidth to move the wrap point, width for a fixed bubble, or lineClamp to truncate on purpose.Basic
title: Basic Tooltip description: Simple tooltip display on hover/press with different trigger events. tags: ["basic", "events", "hover", "focus", "touch", "triggers"]
title: Basic Usage category: usage order: 10 tags: [tooltip] highlightLines: [9-15] status: stable since: 1.0.0 hidden: false
Wrap a control in
Tooltip to display concise helper text on hover, focus, or touch.Positions
title: Tooltip Positions description: Different positioning options for tooltips with smart edge detection and arrow indicators. tags: ["positions", "positioning", "arrows", "edge-detection", "alignment"]
title: Positions category: behavior order: 30 tags: [positioning] highlightLines: [12-31] status: stable since: 1.0.0 hidden: false
Set
position to top, bottom, left, or right to anchor the tooltip relative to its trigger.Simple
title: Simple Tooltip description: Basic tooltip demonstration with different positions, arrows, and multiline text. tags: ["simple", "basic", "positions", "arrow", "multiline"]
title: Trigger Modes category: behavior order: 20 tags: [events, interaction] highlightLines: [13-33] status: stable since: 1.0.0 hidden: false
Configure the
events prop to decide whether tooltips appear on hover, focus, or touch interactions.Scan to open this page on your phonereact-ui-library.com/components/Tooltip
</>
react-ui-library
100+ accessible, themeable components that work seamlessly across iOS, Android, and Web.
A Platform Blocks product.
Quick Links
Resources