BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/zyeon/animated-tooltip

Animated Tooltip

zyeon/animated-tooltip
FreeComponent

A self-contained hover/focus tooltip with a spring pop-in, reduced-motion fallback and an arrow callout — no Radix dependency.

Install it

npx shadcn@latest add https://ui.zyeon.ai/r/animated-tooltip.json

Source

src/registry/ui/animated-tooltip.tsxui.zyeon.ai/r/animated-tooltip.json
1"use client"
2
3import * as React from "react"
4import { AnimatePresence, motion, useReducedMotion } from "motion/react"
5import { cn } from "@/lib/utils"
6
7export interface AnimatedTooltipProps {
8 /** Tooltip bubble content. */
9 content: React.ReactNode
10 /** Which side of the trigger the bubble appears on. */
11 side?: "top" | "bottom"
12 /** The trigger — a single focusable element (button, link, or a tabIndex'd
13 * element). The tooltip's id is injected into it via aria-describedby so
14 * screen readers announce the bubble from the element that actually holds
15 * focus (ARIA tooltip pattern), not from the positioning wrapper. */
16 children: React.ReactElement
17 /** Applied to the tooltip bubble, not the trigger wrapper. */
18 className?: string
19}
20
21export function AnimatedTooltip({ content, side = "top", children, className }: AnimatedTooltipProps) {
22 const [hovered, setHovered] = React.useState(false)
23 const [focused, setFocused] = React.useState(false)
24 const reduced = useReducedMotion()
25 const id = React.useId()
26 const open = hovered || focused
27
28 const close = () => {
29 setHovered(false)
30 setFocused(false)
31 }
32
33 // aria-describedby has to land on the element that actually takes focus (the
34 // ARIA tooltip pattern); on the wrapper span a screen reader announces
35 // nothing — hence injecting it via clone
36 const trigger = React.cloneElement(children as React.ReactElement<Record<string, unknown>>, {
37 "aria-describedby": open ? id : undefined,
38 })
39
40 return (
41 <span
42 className="relative inline-flex"
43 onBlur={() => setFocused(false)}
44 onFocus={() => setFocused(true)}
45 onKeyDown={e => {
46 if (e.key === "Escape") close()
47 }}
48 onMouseEnter={() => setHovered(true)}
49 onMouseLeave={() => setHovered(false)}
50 >
51 {trigger}
52 <AnimatePresence>
53 {open && (
54 <motion.span
55 animate={{
56 opacity: 1,
57 y: 0,
58 scale: 1,
59 transition: reduced ? { duration: 0.15 } : { type: "spring", stiffness: 300, damping: 18 },
60 }}
61 className={cn(
62 "pointer-events-none absolute left-1/2 z-50 -translate-x-1/2 whitespace-nowrap rounded-md bg-foreground px-2.5 py-1 text-xs text-background shadow-md",
63 side === "top" ? "bottom-full mb-2" : "top-full mt-2",
64 className,
65 )}
66 exit={{ opacity: 0, transition: { duration: 0.15 } }}
67 id={id}
68// … truncated

What it pulls in

npm packages

  • motion

Other registry items

  • utils

Files it writes

  • src/registry/ui/animated-tooltip.tsx

Facts

Registry
zyeon
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-12
Last confirmed
yesterday

Go to the source

ui.zyeon.ai Zyeon-AI/zyeon-ui-components on GitHub Raw registry item This item as JSON

More from zyeon

All 893 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
A/B Test Resultab-test-resultzyeonComponentsPaid2 deps · 2 files
AccordionaccordionzyeonComponentsFree1 dep
Activity Feedactivity-feedzyeonComponentsFree2 deps · 2 files
Activity Heatmapactivity-heatmapzyeonComponentsPaid1 dep · 2 files
Address Formaddress-formzyeonComponentsPaid1 dep
Agent Graphagent-graphzyeonComponentsFree2 deps · 2 files
Agent Handoffagent-handoffzyeonComponentsFree1 dep
Agent Inboxagent-inboxzyeonComponentsFree2 deps · 2 files

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex