BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Animate UI/components-base-tooltip

Tooltip

animate-ui/components-base-tooltip
FreeComponent

A popup that appears when an element is hovered or focused, showing a hint for sighted users.

Install it

npx shadcn@latest add https://animate-ui.com/r/components-base-tooltip.json

Source

registry/components/base/tooltip/index.tsxanimate-ui.com/r/components-base-tooltip.json
1import * as React from 'react';
2
3import {
4 TooltipProvider as TooltipProviderPrimitive,
5 Tooltip as TooltipPrimitive,
6 TooltipTrigger as TooltipTriggerPrimitive,
7 TooltipPositioner as TooltipPositionerPrimitive,
8 TooltipPopup as TooltipPopupPrimitive,
9 TooltipArrow as TooltipArrowPrimitive,
10 TooltipPortal as TooltipPortalPrimitive,
11 type TooltipProviderProps as TooltipProviderPrimitiveProps,
12 type TooltipProps as TooltipPrimitiveProps,
13 type TooltipTriggerProps as TooltipTriggerPrimitiveProps,
14 type TooltipPositionerProps as TooltipPositionerPrimitiveProps,
15 type TooltipPopupProps as TooltipPopupPrimitiveProps,
16} from '@/components/animate-ui/primitives/base/tooltip';
17import { cn } from '@/lib/utils';
18
19type TooltipProviderProps = TooltipProviderPrimitiveProps;
20
21function TooltipProvider({ delay = 0, ...props }: TooltipProviderProps) {
22 return <TooltipProviderPrimitive delay={delay} {...props} />;
23}
24
25type TooltipProps = TooltipPrimitiveProps & {
26 delay?: TooltipPrimitiveProps['delay'];
27};
28
29function Tooltip({ delay = 0, ...props }: TooltipProps) {
30 return (
31 <TooltipProvider delay={delay}>
32 <TooltipPrimitive {...props} />
33 </TooltipProvider>
34 );
35}
36
37type TooltipTriggerProps = TooltipTriggerPrimitiveProps;
38
39function TooltipTrigger({ ...props }: TooltipTriggerProps) {
40 return <TooltipTriggerPrimitive {...props} />;
41}
42
43type TooltipPanelProps = TooltipPositionerPrimitiveProps &
44 TooltipPopupPrimitiveProps;
45
46function TooltipPanel({
47 className,
48 sideOffset = 4,
49 children,
50 style,
51 ...props
52}: TooltipPanelProps) {
53 return (
54 <TooltipPortalPrimitive>
55 <TooltipPositionerPrimitive
56 sideOffset={sideOffset}
57 className="z-50"
58 {...props}
59 >
60 <TooltipPopupPrimitive
61 className={cn(
62 'bg-primary text-primary-foreground w-fit origin-(--transform-origin) rounded-md px-3 py-1.5 text-xs text-balance',
63 className,
64 )}
65 style={style}
66 >
67 {children}
68 <TooltipArrowPrimitive className="bg-primary fill-primary z-50 size-2.5 data-[side='bottom']:-top-[4px] data-[side='right']:-left-[4px] data-[side='left']:-right-[4px] data-[side='inline-start']:-right-[4px] data-[side='inline-end']:-left-[4px] rotate-45 rounded-[2px]" />
69 </TooltipPopupPrimitive>
70 </TooltipPositionerPrimitive>
71 </TooltipPortalPrimitive>
72 );
73}
74
75export {
76 Tooltip,
77 TooltipTrigger,
78 TooltipPanel,
79 type TooltipProps,
80 type TooltipTriggerProps,
81// … truncated

What it pulls in

Other registry items

  • @animate-ui/primitives-base-tooltip

Files it writes

  • registry/components/base/tooltip/index.tsx

Facts

Registry
Animate UI
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-04
Last confirmed
today

Go to the source

animate-ui.com imskyleen/animate-ui on GitHub Raw registry item This item as JSON

More from Animate UI

All 580 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Avatar Groupcomponents-animate-avatar-groupAnimate UIComponentsFree1 dep
Codecomponents-animate-codeAnimate UIComponentsFree1 dep
Code Tabscomponents-animate-code-tabsAnimate UIComponentsFree1 dep
Cursorcomponents-animate-cursorAnimate UIComponentsFreeno deps
GitHub Stars Wheelcomponents-animate-github-stars-wheelAnimate UIComponentsFree1 dep
Tabscomponents-animate-tabsAnimate UIComponentsFreeno deps
Tooltipcomponents-animate-tooltipAnimate UIComponentsFree1 dep
Bubble Backgroundcomponents-backgrounds-bubbleAnimate UIComponentsFree1 dep
BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex