MantleUI

Tooltip

A compound tooltip component using Tooltip.Trigger and Tooltip.Content to display contextual information on hover.

Basic

Placement

Custom Delay

Icon Buttons

Tooltips are essential for icon-only buttons to communicate their purpose.

Toolbar

A formatting toolbar with tooltips showing keyboard shortcuts.

Avatar Tooltips

Show user details on hover over avatars.

Disabled Button

Wrap a disabled button in a <span> so the tooltip trigger can still receive hover events.

Custom Tooltip Style

Override the tooltip appearance with --mantle-tooltip-bg, --mantle-tooltip-text, and --mantle-tooltip-border on Tooltip.Content.

Tooltip Props

delayMs300
number

Delay in milliseconds before the tooltip appears on hover.

--mantle-bgtheme default
CSS variable

Override the background color via style. e.g. style={{ "--mantle-bg": "#1a1a2e" }}

--mantle-bordertheme default
CSS variable

Override the border color via style. Set to "transparent" to remove. e.g. style={{ "--mantle-border": "#e94560" }}

--mantle-texttheme default
CSS variable

Override the text color via style. e.g. style={{ "--mantle-text": "#ffffff" }}

--mantle-ringaccent
CSS variable

Override the focus ring color via style. e.g. style={{ "--mantle-ring": "#e94560" }}

Tooltip.Content Props

side"top"
"top" | "bottom" | "left" | "right"

The preferred side of the trigger to render the tooltip.

--mantle-tooltip-bgtheme muted bg
CSS variable

Override the tooltip background. e.g. style={{ "--mantle-tooltip-bg": "#3b82f6" }}

--mantle-tooltip-texttheme text
CSS variable

Override the tooltip text color. e.g. style={{ "--mantle-tooltip-text": "#ffffff" }}

--mantle-tooltip-bordertheme border
CSS variable

Override the tooltip border color. Set to "transparent" to remove. e.g. style={{ "--mantle-tooltip-border": "transparent" }}

© 2026 MantleUI. All rights reserved.