Skip to main content

Tooltip

Show contextual hints on hover or focus, built on Base UI.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
triggerReactNode-
renderReactElement-
triggerLabelstring-
contentReactNode-The tooltip's text.
The tooltip's text.
shortcutstring-A key or chord after the text, drawn as a keycap.
A key or chord after the text, drawn as a keycap.
sidetop | right | bottom | lefttop
sideOffsetnumber8Gap between the trigger and the tooltip, or its arrow tip, in pixels.
Gap between the trigger and the tooltip, or its arrow tip, in pixels.
arrowbooleantrue
delaynumber300
variantlight | dark | dangerlight
shapenone | rounded | pillrounded
animatedbooleantrue
classNamestring-
focusboolean | stringtrue
containerHTMLElement | null-