BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/bejamas/ui/tooltip

tooltip

bejamas-ui/tooltip
FreeComponent

bejamas/ui publishes no description for this item.

Live preview

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

Install it

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

Source

ui/tooltip/Tooltip.astroui.bejamas.com/r/tooltip.json · first 6 KB
1---
2// Generated from bejamas-juno style registry. Do not edit packages/ui/src/components/tooltip/Tooltip.astro directly.
3/**
4 * @component Tooltip
5 * @title Tooltip
6 * @description A small popup that appears when hovering over or focusing on an element. Positioning is computed in JavaScript.
7 *
8 * @preview
9 *
10 * <Tooltip>
11 * <TooltipTrigger asChild>
12 * <Button variant="outline">Hover</Button>
13 * </TooltipTrigger>
14 * <TooltipContent>
15 * <p>Add to library</p>
16 * </TooltipContent>
17 * </Tooltip>
18 *
19 * @usage
20 *
21 * ```astro nocollapse
22 * ---
23 * import { Tooltip, TooltipTrigger, TooltipContent } from '@bejamas/ui/components/tooltip';
24 * import { Button } from '@bejamas/ui/components/button';
25 * ---
26 *
27 * <Tooltip>
28 * <TooltipTrigger asChild>
29 * <Button variant="outline">Hover</Button>
30 * </TooltipTrigger>
31 * <TooltipContent>
32 * <p>Add to library</p>
33 * </TooltipContent>
34 * </Tooltip>
35 * ```
36 *
37 * @examples
38 *
39 * ### With delay
40 *
41 * <Tooltip delay={1000}>
42 * <TooltipTrigger asChild>
43 * <Button variant="outline">Hover with delay</Button>
44 * </TooltipTrigger>
45 * <TooltipContent>
46 * <p>This tooltip appears after 1000ms</p>
47 * </TooltipContent>
48 * </Tooltip>
49 *
50 * ### Skip delay on subsequent tooltips
51 *
52 * When a tooltip is shown, hovering over other tooltip triggers will show their tooltips immediately without delay. Try hovering over the first button, then quickly move to the others.
53 *
54 * <div class="flex gap-2">
55 * <Tooltip delay={500}>
56 * <TooltipTrigger asChild>
57 * <Button variant="outline">Bold</Button>
58 * </TooltipTrigger>
59 * <TooltipContent>
60 * <p>Bold (Ctrl+B)</p>
61 * </TooltipContent>
62 * </Tooltip>
63 * <Tooltip delay={500}>
64 * <TooltipTrigger asChild>
65 * <Button variant="outline">Italic</Button>
66 * </TooltipTrigger>
67 * <TooltipContent>
68 * <p>Italic (Ctrl+I)</p>
69 * </TooltipContent>
70 * </Tooltip>
71 * <Tooltip delay={500}>
72 * <TooltipTrigger asChild>
73 * <Button variant="outline">Underline</Button>
74 * </TooltipTrigger>
75 * <TooltipContent>
76 * <p>Underline (Ctrl+U)</p>
77 * </TooltipContent>
78 * </Tooltip>
79 * </div>
80 *
81 * ### Different sides
82 *
83 * Use the `side` prop to control which side the tooltip appears on.
84 *
85 * <div class="grid gap-4 py-8">
86 * <div class="flex gap-4 items-center justify-center">
87 * <Tooltip>
88 * <TooltipTrigger asChild>
89 * <Button variant="outline">Left</Button>
90// … truncated

What it pulls in

npm packages

  • @data-slot/tooltip

Files it writes

  • ui/tooltip/Tooltip.astro
  • ui/tooltip/TooltipTrigger.astro
  • ui/tooltip/TooltipContent.astro
  • ui/tooltip/index.ts

Facts

Registry
bejamas/ui
Type
registry:ui
Access
Free
Files written
4
Licence
MIT
First indexed
2026-08-01
Last confirmed
2 days ago

Go to the source

Docs on bejamas/ui ui.bejamas.com bejamas/ui on GitHub Raw registry item This item as JSON

More from bejamas/ui

All 41 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordionbejamas/uiComponentsFree1 dep · 5 files
alertalertbejamas/uiComponentsFreeno deps · 4 files
avataravatarbejamas/uiComponentsFreeno deps · 7 files
badgebadgebejamas/uiComponentsFreeno deps · 2 files
breadcrumbbreadcrumbbejamas/uiComponentsFreeno deps · 5 files
buttonbuttonbejamas/uiComponentsFreeno deps · 2 files
button-groupbutton-groupbejamas/uiComponentsFreeno deps · 4 files
cardcardbejamas/uiComponentsFreeno deps · 10 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