v0.3.1 StableFoundation ComponentReact 18 & 19Zero Runtime CSS
Tooltip
Explain an action without interrupting the page.
Interactive preview
Your changes stay in this workspace.
Usage
import { Tooltip } from "@devvy-ui/react";
<Tooltip content="Changes stay in this workspace.">About autosave</Tooltip>API reference
Native HTML attributes, className, style and a forwarded ref are supported. Component-specific props:
| Prop | Type | Default | Description |
|---|---|---|---|
| content | ReactNode | required | Plain or composed help content. |
| delay | number | 300 | Opening delay in milliseconds. |
Accessibility & behavior
Platform Behavior & Guidelines
Delayed hover/focus help remains dismissible with Escape. Trigger children are noninteractive content; native button props/ref remain available.
Source ownership
Run npx @devvy-ui/cli init once in your React project, then add the source:
npx @devvy-ui/cli add tooltipMake the source yours.
Start from the canonical implementation used by the package and registry. Change the code, keep the MIT notice, and build the behavior your project needs.
Tooltip.tsxREACT / TSX
Edit your own copy. Downloaded source uses your changes; the component preview above uses the shipped version. Run the source installer first to include shared helpers.