BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/aomi/popover

popover

aomi/popover
FreeComponent

Displays rich content in a portal, triggered by a button.

Install it

npx shadcn@latest add https://aomi.dev/r/popover.json

Source

components/ui/popover.tsxaomi.dev/r/popover.json
1"use client"
2
3import * as React from "react"
4import * as PopoverPrimitive from "@radix-ui/react-popover"
5
6import { cn } from "@aomi-labs/react"
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-[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",
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 PopoverTrigger,
84 PopoverContent,
85 PopoverAnchor,
86 PopoverHeader,
87 PopoverTitle,
88 PopoverDescription,
89}

What it pulls in

npm packages

  • radix-ui

Files it writes

  • components/ui/popover.tsx

Facts

Registry
aomi
Type
registry:component
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-10
Last confirmed
today

Go to the source

aomi.dev aomi-labs/aomi on GitHub Raw registry item This item as JSON

More from aomi

All 34 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
accordionaccordionaomiComponentsFree2 deps
alertalertaomiComponentsFree1 dep
aomi-frameaomi-frameaomiComponentsFree1 dep
aomi-para-provideraomi-para-provideraomiComponentsFree9 deps · 27 files
aomi-privy-provideraomi-privy-provideraomiComponentsFree7 deps · 15 files
aomi-wallet-kitaomi-wallet-kitaomiComponentsFree8 deps · 59 files
aomi-widgetaomi-widgetaomiComponentsFree2 deps
assistant-threadassistant-threadaomiComponentsFree6 deps · 23 files
BlockDex

Built by

Kynth Studios

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 Studios

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 Studios

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