Skip to content
Playground

Tooltip

Supplemental text for pointer and keyboard users.

Supplemental text for pointer and keyboard users.

Backed by Base UI Tooltip for upstream behavior and configuration. Zenos owns the public API, styling, and composition shown on this page.

TSX
import { Tooltip } from "@zentara-co/zenos-ui";

default uses the brand-subtle surface for short labels. solid provides a stronger overlay surface for slightly longer supplemental descriptions.

Set the preferred side and alignment on Tooltip.Content. Base UI flips or shifts the popup when collision avoidance requires it.

Use open with onOpenChange when another part of the interface must observe visibility. Hover, focus, Escape, and outside interaction all report through the same callback.

Tooltip is closed.

Tooltips fade, scale, and move from their resolved side when opening, then reverse that movement when closing. Reduced-motion preferences remove the animation automatically. The arrow fades with the tooltip.

Hover or focus each button. The first tooltip animates in and out. disableMotion makes the second appear and disappear immediately.

Wrap related tooltips in one Provider to share delay, closeDelay, and the grace timeout. Once one tooltip appears, nearby tooltips can open instantly during the grace period. Zenos defaults delay to zero; set a modest delay for dense toolbars when immediate hover feedback feels noisy.

Content includes a matching arrow by default. Disable it for surfaces where trigger direction is already clear.

Tooltips supplement an accessible name; they should not contain essential instructions or interactive content.

Variants

defaultsolid
Tooltip.Provider
Tooltip.Root
Tooltip.Trigger
Tooltip.Content
Tooltip.Arrow

API

PropTypeDefaultDescription
delay number 0 Provider or trigger opening delay.
Provider.closeDelay / timeout number / number 0 / 400 Close delay and instant-open grace period for grouped tooltips.
open / defaultOpen boolean — Controlled or initial tooltip visibility.
onOpenChange (open: boolean, eventDetails) => void — Runs when visibility changes.
variant default | solid default Popup surface style.
side top | right | bottom | left top Preferred popup side.
align / sideOffset start | center | end / number center / 4 Popup alignment and distance from the trigger.
showArrow boolean true Renders a matching arrow that fades with the tooltip.
Content.disableMotion boolean false Disables the popup and arrow enter and exit animation for this instance.
render ReactElement | function — Composes the trigger with another element.
native props React.Base UI Tooltip props — Forwards native attributes, events, aria-*, data-*, className, style, and ref.

Unless narrowed above, each DOM-rendering part also accepts its underlying native or Base UI props, including className, style, aria-*, and data-*.

Tooltips open on pointer hover and keyboard focus, close with Escape, and connect to their trigger through Base UI’s description relationship. Trigger composition uses render, so the rendered control must retain supplied props and refs. Keep tooltip content brief and non-interactive. Disabled native buttons cannot receive focus or hover events reliably; place essential explanations in persistent text rather than depending on a tooltip.