BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/gymnopedies/tooltip

Tooltip

gymnopedies/tooltip
FreeComponent

Tooltip — gymnopédies-themed shadcn primitive.

Install it

npx shadcn@latest add https://gymnopedies.shoota.work/r/tooltip.json

Source

src/components/ui/tooltip.tsxgymnopedies.shoota.work/r/tooltip.json
1"use client"
2
3import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip"
4
5import { cn } from "@/lib/utils"
6
7function TooltipProvider({
8 delay = 0,
9 ...props
10}: TooltipPrimitive.Provider.Props) {
11 return (
12 <TooltipPrimitive.Provider
13 data-slot="tooltip-provider"
14 delay={delay}
15 {...props}
16 />
17 )
18}
19
20function Tooltip({ ...props }: TooltipPrimitive.Root.Props) {
21 return <TooltipPrimitive.Root data-slot="tooltip" {...props} />
22}
23
24function TooltipTrigger({ ...props }: TooltipPrimitive.Trigger.Props) {
25 return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props} />
26}
27
28function TooltipContent({
29 className,
30 side = "top",
31 sideOffset = 4,
32 align = "center",
33 alignOffset = 0,
34 children,
35 ...props
36}: TooltipPrimitive.Popup.Props &
37 Pick<
38 TooltipPrimitive.Positioner.Props,
39 "align" | "alignOffset" | "side" | "sideOffset"
40 >) {
41 return (
42 <TooltipPrimitive.Portal>
43 <TooltipPrimitive.Positioner
44 align={align}
45 alignOffset={alignOffset}
46 side={side}
47 sideOffset={sideOffset}
48 className="isolate z-50"
49 >
50 <TooltipPrimitive.Popup
51 data-slot="tooltip-content"
52 className={cn(
53 "z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-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 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
54 className
55 )}
56 {...props}
57 >
58 {children}
59// … truncated

What it pulls in

npm packages

  • @base-ui/react

Other registry items

  • https://gymnopedies.shoota.work/r/utils.json

Files it writes

  • src/components/ui/tooltip.tsx

Facts

Registry
gymnopedies
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

gymnopedies.shoota.work shoota/gymnopedies on GitHub Raw registry item This item as JSON

More from gymnopedies

All 49 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordiongymnopediesComponentsFree2 deps
AlertalertgymnopediesComponentsFree1 dep
Alert Dialogalert-dialoggymnopediesComponentsFree1 dep
ArticlearticlegymnopediesComponentsFreeno deps
Aspect Ratioaspect-ratiogymnopediesComponentsFreeno deps
AvataravatargymnopediesComponentsFree1 dep
BadgebadgegymnopediesComponentsFree2 deps
BreadcrumbbreadcrumbgymnopediesComponentsFree2 deps
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