A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.
A Tooltip shows a short, non-interactive label when a control receives keyboard focus or a pointer hover. Reach for it to clarify the purpose of an icon-only button or provide a brief hint about a control.
Popover when the floating content needs buttons, links, inputs, or anything else focusable.HoverCard for a sighted-only preview of content that already lives behind a link.warning
Popover instead.1import { Button } from "@ngrok/mantle/button";2import { Tooltip } from "@ngrok/mantle/tooltip";3 4<Tooltip.Root>5 <Tooltip.Trigger asChild>6 <Button type="button" appearance="filled" priority="default">7 Hover me8 </Button>9 </Tooltip.Trigger>10 <Tooltip.Content>11 <p>This feature is part of your plan</p>12 </Tooltip.Content>13</Tooltip.Root>;Compose the parts of a Tooltip together to build your own:
Tooltip.Root├── Tooltip.Trigger└── Tooltip.Contentnote
TooltipProvider once at the root to share global tooltip behavior — such as consistent delay and hover settings — across your application.Wraps your app to provide global functionality to your tooltips. Only one instance of this component should be rendered in your app, preferably at the root.
The root component that manages the open/closed state of the tooltip. Will throw if you have not wrapped your app in a TooltipProvider.
The button that toggles the tooltip. By default, the Tooltip.Content will position itself against the trigger.
The component that pops out when the tooltip is open.