BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/attn-ui/tooltip

tooltip

attn-ui/tooltip
FreeComponent

attn-ui publishes no description for this item.

Install it

npx shadcn@latest add https://attnui.com/r/tooltip.json

Source

src/registry/ui/tooltip.tsxattnui.com/r/tooltip.json
1"use client"
2
3import * as React from "react"
4import * as TooltipPrimitive from "@radix-ui/react-tooltip"
5
6import { cn } from "@/lib/utils"
7
8function TooltipProvider({
9 delayDuration = 0,
10 ...props
11}: React.ComponentProps<typeof TooltipPrimitive.Provider>) {
12 return (
13 <TooltipPrimitive.Provider
14 data-slot="tooltip-provider"
15 delayDuration={delayDuration}
16 {...props}
17 />
18 )
19}
20
21function Tooltip({
22 ...props
23}: React.ComponentProps<typeof TooltipPrimitive.Root>) {
24 return (
25 <TooltipProvider>
26 <TooltipPrimitive.Root data-slot="tooltip" {...props} />
27 </TooltipProvider>
28 )
29}
30
31function TooltipTrigger({
32 ...props
33}: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {
34 return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props} />
35}
36
37function TooltipContent({
38 className,
39 sideOffset = 0,
40 children,
41 ...props
42}: React.ComponentProps<typeof TooltipPrimitive.Content>) {
43 return (
44 <TooltipPrimitive.Portal>
45 <TooltipPrimitive.Content
46 data-slot="tooltip-content"
47 sideOffset={sideOffset}
48 className={cn(
49 "bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
50 className
51 )}
52 {...props}
53 >
54 {children}
55 <TooltipPrimitive.Arrow className="bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" />
56 </TooltipPrimitive.Content>
57 </TooltipPrimitive.Portal>
58 )
59}
60
61export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }

What it pulls in

npm packages

  • @radix-ui/react-tooltip

Files it writes

  • src/registry/ui/tooltip.tsx

Facts

Registry
attn-ui
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

attnui.com thatbeautifuldream/ui on GitHub Raw registry item This item as JSON

More from attn-ui

All 6 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Animated Avatar Stackanimated-avatar-stackattn-uiComponentsFree2 deps · 2 files
avataravatarattn-uiComponentsFree1 dep
buttonbuttonattn-uiComponentsFreeno deps
Nested Menu Drawernested-drawerattn-uiComponentsFree1 dep · 2 files
Timezone Clocktimezone-clockattn-uiComponentsFree1 dep · 2 files
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