A plain tooltip on any element that shows on hover or focus.
<app-tooltip text="Save your work"><button>Save</button></app-tooltip>
<app-tooltip> wraps any element to show a short hint on hover or focus. It's simpler than <app-popover> (which is click-opened and can hold rich content) and distinct from <app-info-tip> (which is a help "?" icon beside a label). Use a tooltip for a quick explanation of a button, icon, or abbreviation.
Its look comes entirely from the shared @webority/theme, so the Razor <app-tooltip> and the React <AppTooltip> render identically on every Webority surface.
Playground
Every attribute, live. Each change re-renders the real tag helper on the server, so the markup underneath is the exact call that produced the trigger above it.
Basic tooltip
Wrap any element to add a tooltip. The text renders on hover or focus and vanishes when the pointer moves away or focus is lost.
A tooltip on a button
Show code
<app-tooltip text="Save your work">
<app-button variant="primary">Save</app-button>
</app-tooltip>
Auto-dismissThe tooltip vanishes when you move your pointer away or the element loses focus. No close button or manual dismiss needed.
Placement
Control where the tooltip appears relative to the trigger. The default is top; it flips to stay in view if the edge is near.
The content is plain text. React's <AppTooltip> accepts any rich ReactNode for its content prop — bold text, multiple lines, inline elements. Razor's <app-tooltip> renders once on the server, so content is a plain string only.
No rich content on RazorReact's content prop accepts a full ReactNode. Razor's content attribute is a plain string; for anything richer than a sentence, reach for <app-popover> instead.
On icon buttons
Tooltips are especially useful on icon buttons where the icon alone may not be immediately clear.
Pick a preset with the tone attribute, or set the --wui-tooltip-* CSS vars from your own class for a fully custom colour. The arrow always follows the body colour.
Tone presets
Each trigger uses a different <app-button> variant, so variants render alongside the tinted tips.