Skip to content

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
PropTypeDefaultDescription
keystring | 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.openbooleanRequired
props.disabledboolean | undefined—
props.delaynumber | undefined—
props.anchor
Show type
string | { 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.sideOffsetnumber | undefined—
props.alignOffsetnumber | 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 type
number | { readonly bottom?: number | undefined; readonly left?: number | undefined; readonly right?: number | undefined; readonly top?: number | undefined; } | undefined
—
props.stickyboolean | undefined—
props.arrowPaddingnumber | undefined—
props.positionMethod"fixed" | "absolute" | undefined—
props.disableAnchorTrackingboolean | undefined—
props.topLayerboolean | undefined—
props.closeDelaynumber | undefined—
props.closeOnClickboolean | undefined—
props.disableHoverablePopupboolean | undefined—
props.describesTriggerboolean | undefined—
shapeShapeVariant'rounded'
sizeSizeVariant'default'
surfacenumber1
labelstringRequired
descriptionstring—
shortcutstring | readonly string[]—
classNamestring—
followCursor"x" | "y"—
groupedboolean—
trigger(parts: TooltipParts) => View.Input<Msg, R>Required