Skip to main content

Examples

Default

Long Content

All Placements

Bottom

Label as trigger (dashed underline)

Props

Tooltip

Root component that manages open/close state for a single tooltip. A direct re-export of the Radix TooltipPrimitive.Root primitive. It accepts all of that primitive’s props, unchanged.

TooltipContent

boolean
"top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | ...
default:"top"
Position of the tooltip relative to the trigger. Takes precedence over side and align.Full type: "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end".
ReactNode
Optional heading above the body, for the two-row tooltip: a bold label naming the thing, then a plain-weight description of it. Without it the tooltip is a single bold line.

TooltipLabel

A text label that is itself the tooltip trigger, marked by a dashed underline. Use this instead of pairing a label with a separate info glyph: the visible text becomes the trigger’s accessible name, and the row stays at text height rather than being stretched by an icon button. The label is repeated as the tooltip’s heading, so the tooltip reads as the two-row block the design specifies — the term, then what it means. Tapping the label toggles the tooltip on touch devices, where there is no hover to trigger it. Tapping elsewhere, scrolling, or opening another tooltip dismisses it.
ReactNode
required
The label text, which doubles as the trigger.
ReactNode
required
Tooltip content. Pass a translated string for i18n.

TooltipProvider

Provides tooltip delay and skip-delay context. Wrap your app or a subtree. Defaults delayDuration to 200ms rather than inheriting Radix’s 700ms, which reads as unresponsive on the short hint labels this library uses tooltips for. Pass delayDuration to override. Note that TooltipLabel, ChartCard and SwitchField each mount their own provider internally, so they take this default but not an app-level override. Accepts all props of the underlying Radix TooltipPrimitive.Provider primitive, plus className.

TooltipTrigger

The element that triggers the tooltip on hover/focus. A direct re-export of the Radix TooltipPrimitive.Trigger primitive. It accepts all of that primitive’s props, unchanged.

Exported types

Also exported from @fanvue/ui: TooltipContentProps, TooltipLabelProps, TooltipPlacement, TooltipProps, TooltipProviderProps, TooltipTriggerProps.
Setup: Installation · Theming