Tooltip | TooltipContent
TooltipContent#
Description#
- The visible tooltip bubble. It teleports to the body via
Teleportso it is not clipped inside containers withoverflow: hidden. - It positions itself
fixedagainst the trigger coordinates and never leaves the window. - It animates in and out with a short opacity and translate transition.
Props#
side('top' | 'bottom' | 'left' | 'right') — Side of the trigger where the bubble appears. Default:'bottom'.align('start' | 'center' | 'end') — Alignment of the bubble relative to the chosen side. Default:'center'.sideOffset(number) — Distance in pixels between the trigger and the bubble. Default:4.
Usage#
| |
Notas#
- Classes passed to the component are read from
attrs(withinheritAttrs: false) and applied to the bubble, since the root node is aTeleportand not an element. - The bubble maximum width is the window width minus 16 px; long text wraps.