Animated Tooltip

Motion

Animated Tooltip is a React row of overlapping avatars where hovering or focusing one pops up a name and role card that tilts and slides with the pointer on springs.

src/registry/premium/animated-tooltip.tsx/r/animated-tooltip.json

Installation#

bash
npx shadcn@latest add @minidev/animated-tooltip

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/animated-tooltip.json

Usage#

tsx
import { AnimatedTooltip } from "@/components/ui/animated-tooltip"

export function Example() {
  return <AnimatedTooltip />
}

API reference#

AnimatedTooltip props
PropTypeDefault
peopleAnimatedTooltipPerson[]-
sizenumber44
defaultActivenumber-
onSelect(person: AnimatedTooltipPerson, index: number) => void-
classNamestring-

Dependencies#

npm

motion

Built from

No other MiniDev files
All dialog, drawer and popover components

Learn more