Tooltip
Floating tooltip with spring-based animations, configurable placement, and rich content support.
Installation
Install Tooltip from the Fluid Effect UI registry.
Basic
Placement
Rich Content
Keyboard shortcut
Group
Vertical group
Follow cursor
Delay
API Reference
Types come from the public API. A dash indicates no default is documented here.
Tooltip props
Public source| Prop | Type | Default | Description |
|---|---|---|---|
key | string | undefined | '' | The child's identity among its parent's children of one component. The empty string by default. |
onEmit | Show type((events: { readonly _tag: "RequestedClose"; } | { readonly _tag: "RequestedOpen"; }) => NoInfer<Msg> | undefined) | { readonly RequestedClose: (event: { readonly _tag: "RequestedClose"; }) => NoInfer<Msg> | undefined; readonly RequestedOpen: (event: { readonly _tag: "RequestedOpen"; }) => NoInfer<Msg> | undefined; } | undefined | — | Handle the child's events with a callback, or supply one handler per tag for tagged events. Return a parent message to dispatch it, or `undefined` to ignore the event. |
props.open | boolean | Required | |
props.disabled | boolean | undefined | — | |
props.delay | number | undefined | — | |
props.anchor | Show typestring | { readonly x: number; readonly y: number; readonly width: number; readonly height: number; } | undefined | — | |
props.side | "bottom" | "left" | "right" | "top" | "inline-start" | "inline-end" | undefined | — | |
props.align | "end" | "start" | "center" | undefined | — | |
props.sideOffset | number | undefined | — | |
props.alignOffset | number | undefined | — | |
props.collisionAvoidance | Show type{ readonly side?: "shift" | "none" | "flip" | undefined; readonly align?: "shift" | "none" | "flip" | undefined; readonly fallbackAxisSide?: "end" | "start" | "none" | undefined; } | undefined | — | |
props.collisionBoundary | Show type"clipping-ancestors" | { readonly id: string; } | { readonly x: number; readonly y: number; readonly width: number; readonly height: number; } | undefined | — | |
props.collisionPadding | Show typenumber | { readonly bottom?: number | undefined; readonly left?: number | undefined; readonly right?: number | undefined; readonly top?: number | undefined; } | undefined | — | |
props.sticky | boolean | undefined | — | |
props.arrowPadding | number | undefined | — | |
props.positionMethod | "fixed" | "absolute" | undefined | — | |
props.disableAnchorTracking | boolean | undefined | — | |
props.topLayer | boolean | undefined | — | |
props.closeDelay | number | undefined | — | |
props.closeOnClick | boolean | undefined | — | |
props.disableHoverablePopup | boolean | undefined | — | |
props.describesTrigger | boolean | undefined | — | |
shape | ShapeVariant | 'rounded' | |
size | SizeVariant | 'default' | |
surface | number | 1 | |
label | string | Required | |
description | string | — | |
shortcut | string | readonly string[] | — | |
className | string | — | |
followCursor | "x" | "y" | — | |
grouped | boolean | — | |
trigger | (parts: TooltipParts) => View.Input<Msg, R> | Required |