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

draco-china-github/popover
FreeComponent

shadcn/ui publishes no description for this item.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/draco-china/shadcn-pro/main/apps/docs/public/r/styles/radix-sera/popover.json

Source

registry/radix-sera/ui/popover.tsxraw.githubusercontent.com/draco-china/shadcn-pro/main/apps/docs/public/r/styles/radix-sera/popover.json
1"use client"
2
3import * as React from "react"
4import { Popover as PopoverPrimitive } from "radix-ui"
5
6import { cn } from "@/registry/radix-sera/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 "z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-4 rounded-none bg-popover p-4 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 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-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
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("text-xs font-semibold uppercase", 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(
76 "mt-0.5 text-sm leading-relaxed text-muted-foreground",
77 className
78 )}
79 {...props}
80 />
81 )
82}
83
84export {
85 Popover,
86 PopoverAnchor,
87 PopoverContent,
88 PopoverDescription,
89 PopoverHeader,
90 PopoverTitle,
91 PopoverTrigger,
92}

Files it writes

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

Facts

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

Go to the source

draco-china.github.io draco-china/shadcn-pro on GitHub Raw registry item This item as JSON

More from shadcn/ui

All 201 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