BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/uiable/popover

Popover

uiable/popover
FreeComponent

Popover component.

Live preview

live · rendered by the registry
Rendered by uiable on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://uiable.com/r/popover.json

Source

src/components/ui/popover.tsxuiable.com/r/popover.json
1"use client";
2
3import { ComponentProps } from "react";
4
5import { Popover as PopoverPrimitive } from "@base-ui/react/popover";
6
7import { cn } from "@/lib/utils";
8
9function Popover({ ...props }: PopoverPrimitive.Root.Props) {
10 return <PopoverPrimitive.Root data-slot="popover" {...props} />;
11}
12
13function PopoverTrigger({ ...props }: PopoverPrimitive.Trigger.Props) {
14 return <PopoverPrimitive.Trigger data-slot="popover-trigger" {...props} />;
15}
16
17function PopoverContent({
18 className,
19 align = "center",
20 alignOffset = 0,
21 side = "bottom",
22 sideOffset = 4,
23 ...props
24}: PopoverPrimitive.Popup.Props &
25 Pick<
26 PopoverPrimitive.Positioner.Props,
27 "align" | "alignOffset" | "side" | "sideOffset"
28 >) {
29 return (
30 <PopoverPrimitive.Portal>
31 <PopoverPrimitive.Positioner
32 align={align}
33 alignOffset={alignOffset}
34 side={side}
35 sideOffset={sideOffset}
36 className="isolate z-50"
37 >
38 <PopoverPrimitive.Popup
39 data-slot="popover-content"
40 className={cn(
41 "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 data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 z-50 flex w-72 origin-(--transform-origin) flex-col gap-2.5 rounded-lg p-4 text-sm shadow-[0_4px_24px_0_rgba(62,57,107,.18)] ring-0 outline-hidden duration-100",
42 className
43 )}
44 {...props}
45 />
46 </PopoverPrimitive.Positioner>
47 </PopoverPrimitive.Portal>
48 );
49}
50
51function PopoverHeader({ className, ...props }: ComponentProps<"div">) {
52 return (
53 <div
54 data-slot="popover-header"
55 className={cn("flex flex-col gap-0.5 text-sm", className)}
56 {...props}
57 />
58 );
59}
60
61function PopoverTitle({ className, ...props }: PopoverPrimitive.Title.Props) {
62 return (
63 <PopoverPrimitive.Title
64 data-slot="popover-title"
65 className={cn("font-medium", className)}
66 {...props}
67 />
68 );
69}
70
71function PopoverDescription({
72 className,
73 ...props
74}: PopoverPrimitive.Description.Props) {
75 return (
76 <PopoverPrimitive.Description
77 data-slot="popover-description"
78// … truncated

What it pulls in

npm packages

  • @base-ui/react

Files it writes

  • src/components/ui/popover.tsx

Facts

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

Go to the source

Docs on uiable uiable.com codedthemes/uiable on GitHub Raw registry item This item as JSON

More from uiable

All 712 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionuiableComponentsFree2 deps
AlertalertuiableComponentsFree1 dep
Alert Dialogalert-dialoguiableComponentsFree1 dep
Aspect Ratioaspect-ratiouiableComponentsFreeno deps
AttachmentattachmentuiableComponentsFree2 deps
AvataravataruiableComponentsFree1 dep
BadgebadgeuiableComponentsFree2 deps
BreadcrumbbreadcrumbuiableComponentsFree2 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