BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Pixelact UI/popover

Pixelact Popover

pixelact-ui/popover
FreeComponent

A simple popover component.

Live preview

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

Install it

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

Source

components/ui/pixelact-ui/popover.tsxpixelactui.com/r/popover.json
1import * as PopoverPrimitive from "@radix-ui/react-popover";
2import { type VariantProps, cva } from "class-variance-authority";
3
4import { cn } from "@/lib/utils";
5
6import {
7 Popover as ShadcnPopover,
8 PopoverAnchor as ShadcnPopoverAnchor,
9 PopoverContent as ShadcnPopoverContent,
10 PopoverTrigger as ShadcnPopoverTrigger,
11} from "@/components/ui/popover";
12
13import "@/components/ui/pixelact-ui/styles/styles.css";
14
15const Popover = ShadcnPopover;
16
17const PopoverTrigger = ShadcnPopoverTrigger;
18
19const PopoverAnchor = ShadcnPopoverAnchor;
20
21export const popOverVariants = cva("", {
22 variants: {
23 font: {
24 normal: "",
25 pixel: "pixel-font",
26 },
27 },
28 defaultVariants: {
29 font: "pixel",
30 },
31});
32
33export interface PopoverProps
34 extends React.ComponentProps<typeof PopoverPrimitive.Content>,
35 VariantProps<typeof popOverVariants> {}
36
37function PopoverContent({ children, font, className, ...props }: PopoverProps) {
38 return (
39 <ShadcnPopoverContent
40 className={cn(
41 "relative bg-card text-foreground border-none rounded-none mt-1 shadow-(--pixel-box-shadow)",
42 popOverVariants({ font }),
43 className
44 )}
45 {...props}
46 >
47 {children}
48 </ShadcnPopoverContent>
49 );
50}
51
52export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };

What it pulls in

Other registry items

  • popover

Files it writes

  • components/ui/pixelact-ui/popover.tsx
  • components/ui/pixelact-ui/styles/styles.css

Facts

Registry
Pixelact UI
Type
registry:component
Access
Free
Files written
2
Licence
MIT
First indexed
2026-08-03
Last confirmed
today

Go to the source

Docs on Pixelact UI pixelactui.com pixelact-ui/pixelact-ui on GitHub Raw registry item This item as JSON

More from Pixelact UI

All 28 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Pixelact AccordionaccordionPixelact UIComponentsFreeno deps · 2 files
Pixelact AlertalertPixelact UIComponentsFreeno deps · 2 files
Pixelact Alert Dialogalert-dialogPixelact UIComponentsFreeno deps · 2 files
Pixelact AvataravatarPixelact UIComponentsFreeno deps · 2 files
Pixelact BadgebadgePixelact UIComponentsFreeno deps · 2 files
Pixelact BreadcrumbbreadcrumbPixelact UIComponentsFreeno deps · 2 files
Pixelact ButtonbuttonPixelact UIComponentsFreeno deps · 3 files
Pixelact CalendarcalendarPixelact UIComponentsFreeno deps · 2 files
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