LibraryComponents
Tooltip
Lightweight accessible tooltip for click, hover, and focus triggers.
Tooltip
Domain: tooltip
Package path: packages/ui/src/tooltip
Import: @ziteox/ui/tooltip
Small overlay for hints and metadata. Supports hover-focus (default), click, hover-only, and focus-only triggers; placement with viewport flip; Escape and outside-click dismiss (click / hover-focus); optional arrow; motion enter/exit (respects reduced motion).
Expects the same shadcn-style CSS variables as analytics (--popover, --border, …), scoped on .forge-analytics-scope in docs previews.
top-start
top-end
bottom-start
right
Usage
import { Tooltip } from "@ziteox/ui/tooltip";
<Tooltip content="Copy site ID" placement="top" arrow>
<button type="button" aria-label="Copy">…</button>
</Tooltip>Controlled mode: open, onOpenChange, defaultOpen. Disable with disabled.