Morph tooltip
A tooltip that moves and resizes between triggers.
When to use
- A toolbar where users scan across many icons.
When not to use
- Only a single trigger.
Installation
terminal
pnpm dlx shadcn@latest add @caliper/morph-tooltip
Adds the file to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
API reference
MorphTooltipProvider
2 props
PropTypeDefault
children *ReactNode—
delaynumber350
MorphTooltip
2 props
PropTypeDefault
content *ReactNode—
children *ReactNode—
Keyboard
- Escape
- Closes or cancels, then returns focus to where it came from.
Accessibility
It exposes tooltip semantics, with aria-describedby kept in step with state.
Notes for AI
Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.
/docs/components/morph-tooltip.mdThe index of every part is at /llms.txt.