BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/tdds/popover

Popover

tdds/popover
FreeComponent

Floating popover content

Install it

npx shadcn@latest add https://raw.githubusercontent.com/gjohnsx/ttb-label-verification/main/tdds-registry/public/r/popover.json

Source

registry/ui/popover.tsxraw.githubusercontent.com/gjohnsx/ttb-label-verification/main/tdds-registry/public/r/popover.json
1"use client"
2
3import * as React from "react"
4import { Popover as PopoverPrimitive } from "radix-ui"
5
6import { cn } from "@/lib/utils"
7
8function Popover({
9 ...props
10}: React.ComponentProps<typeof PopoverPrimitive.Root>) {
11 return <PopoverPrimitive.Root data-slot="popover" {...props} />
12}
13
14function PopoverTrigger({
15 ...props
16}: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {
17 return <PopoverPrimitive.Trigger data-slot="popover-trigger" {...props} />
18}
19
20function PopoverContent({
21 className,
22 align = "center",
23 sideOffset = 4,
24 ...props
25}: React.ComponentProps<typeof PopoverPrimitive.Content>) {
26 return (
27 <PopoverPrimitive.Portal>
28 <PopoverPrimitive.Content
29 data-slot="popover-content"
30 align={align}
31 sideOffset={sideOffset}
32 className={cn(
33 "bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-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 ring-foreground/10 flex flex-col gap-4 p-4 text-sm shadow-md ring-1 duration-100 z-50 w-72 origin-(--radix-popover-content-transform-origin) outline-hidden",
34 className
35 )}
36 {...props}
37 />
38 </PopoverPrimitive.Portal>
39 )
40}
41
42function PopoverAnchor({
43 ...props
44}: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {
45 return <PopoverPrimitive.Anchor data-slot="popover-anchor" {...props} />
46}
47
48function PopoverHeader({ className, ...props }: React.ComponentProps<"div">) {
49 return (
50 <div
51 data-slot="popover-header"
52 className={cn("flex flex-col gap-1 text-sm", className)}
53 {...props}
54 />
55 )
56}
57
58function PopoverTitle({ className, ...props }: React.ComponentProps<"h2">) {
59 return (
60 <div
61 data-slot="popover-title"
62 className={cn("font-medium", className)}
63 {...props}
64 />
65 )
66}
67
68function PopoverDescription({
69 className,
70 ...props
71}: React.ComponentProps<"p">) {
72 return (
73 <p
74 data-slot="popover-description"
75 className={cn("text-muted-foreground", className)}
76 {...props}
77 />
78 )
79}
80
81export {
82 Popover,
83 PopoverAnchor,
84 PopoverContent,
85 PopoverDescription,
86 PopoverHeader,
87 PopoverTitle,
88 PopoverTrigger,
89}

What it pulls in

npm packages

  • radix-ui

Other registry items

  • utils

Files it writes

  • registry/ui/popover.tsx

Facts

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

Go to the source

icy-river-012b1601e.6.azurestaticapps.net gjohnsx/ttb-label-verification on GitHub Raw registry item This item as JSON

More from tdds

All 43 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordiontddsComponentsFree2 deps
AlertalerttddsComponentsFree1 dep
Alert Dialogalert-dialogtddsComponentsFree1 dep
AvataravatartddsComponentsFree1 dep
BadgebadgetddsComponentsFree1 dep
BreadcrumbbreadcrumbtddsComponentsFree2 deps
ButtonbuttontddsComponentsFree2 deps
Button Groupbutton-grouptddsComponentsFree1 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