BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/uiable/tooltip

Tooltip

uiable/tooltip
FreeComponent

Tooltip component.

Live preview

live · rendered by the registry
Rendered by uiable on their own page — this is the component running, not a screenshot of it.

Install it

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

Source

src/components/ui/tooltip.tsxuiable.com/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 "data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-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 data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 bg-foreground text-background z-50 w-fit max-w-xs origin-(--transform-origin) rounded-lg px-4 py-2 text-xs shadow-lg",
54 className
55 )}
56 {...props}
57 >
58 {children}
59// … truncated

What it pulls in

npm packages

  • @base-ui/react

Files it writes

  • src/components/ui/tooltip.tsx

Facts

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

Go to the source

Docs on uiable uiable.com codedthemes/uiable on GitHub Raw registry item This item as JSON

More from uiable

All 730 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionuiableComponentsFree2 deps
AlertalertuiableComponentsFree1 dep
Alert Dialogalert-dialoguiableComponentsFree1 dep
Aspect Ratioaspect-ratiouiableComponentsFreeno deps
AttachmentattachmentuiableComponentsFree2 deps
AvataravataruiableComponentsFree1 dep
BadgebadgeuiableComponentsFree2 deps
BreadcrumbbreadcrumbuiableComponentsFree2 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