BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/gmhlab/popover

popover

gmhlab/popover
FreeComponent

gmhlab publishes no description for this item.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/gmhlab/monorepo/main/packages/ui/public/r/popover.json

Source

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

What it pulls in

npm packages

  • radix-ui

Files it writes

  • registry/new-york/ui/popover.tsx

Facts

Registry
gmhlab
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
2 days ago

Go to the source

gwglobalmentalhealth.com gmhlab/monorepo on GitHub Raw registry item This item as JSON

More from gmhlab

All 64 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordiongmhlabComponentsFree2 deps
alertalertgmhlabComponentsFree1 dep
alert-dialogalert-dialoggmhlabComponentsFree1 dep
aspect-ratioaspect-ratiogmhlabComponentsFree1 dep
avataravatargmhlabComponentsFree1 dep
badgebadgegmhlabComponentsFree2 deps
breadcrumbbreadcrumbgmhlabComponentsFree2 deps
buttonbuttongmhlabComponentsFree2 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