BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn/ui/popover

popover

agileflow-projectquestorg/popover
FreeComponent

shadcn/ui publishes no description for this item.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/projectquestorg/AgileFlow/main/apps/docs/public/r/styles/radix-nova/popover.json

Source

registry/radix-nova/ui/popover.tsxraw.githubusercontent.com/projectquestorg/AgileFlow/main/apps/docs/public/r/styles/radix-nova/popover.json
1"use client"
2
3import * as React from "react"
4import { Popover as PopoverPrimitive } from "radix-ui"
5
6import { cn } from "@/registry/bases/radix/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-2.5 rounded-lg p-2.5 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-0.5 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}

Files it writes

  • registry/radix-nova/ui/popover.tsx

Facts

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

Go to the source

agileflow.projectquestorg.com projectquestorg/AgileFlow on GitHub Raw registry item This item as JSON

More from shadcn/ui

All 133 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordionshadcn/uiComponentsFreeno deps
alertalertshadcn/uiComponentsFreeno deps
alert-dialogalert-dialogshadcn/uiComponentsFreeno deps
aspect-ratioaspect-ratioshadcn/uiComponentsFreeno deps
avataravatarshadcn/uiComponentsFreeno deps
badgebadgeshadcn/uiComponentsFreeno deps
breadcrumbbreadcrumbshadcn/uiComponentsFreeno deps
buttonbuttonshadcn/uiComponentsFreeno 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