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/drawer

Pixelact Drawer

pixelact-ui/drawer
FreeComponent

A pixel art styled drawer component built on top of vaul Drawer.

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/drawer.json

Source

components/ui/pixelact-ui/drawer.tsxpixelactui.com/r/drawer.json
1import { type VariantProps, cva } from "class-variance-authority";
2import { Drawer as DrawerPrimitive } from "vaul";
3
4import { cn } from "@/lib/utils";
5
6import {
7 Drawer as ShadcnDrawer,
8 DrawerClose as ShadcnDrawerClose,
9 DrawerDescription as ShadcnDrawerDescription,
10 DrawerFooter as ShadcnDrawerFooter,
11 DrawerHeader as ShadcnDrawerHeader,
12 DrawerOverlay as ShadcnDrawerOverlay,
13 DrawerPortal as ShadcnDrawerPortal,
14 DrawerTitle as ShadcnDrawerTitle,
15 DrawerTrigger as ShadcnDrawerTrigger,
16} from "@/components/ui/drawer";
17
18import "@/components/ui/pixelact-ui/styles/styles.css";
19
20const Drawer = ShadcnDrawer;
21
22const DrawerPortal = ShadcnDrawerPortal;
23
24const DrawerOverlay = ShadcnDrawerOverlay;
25
26const DrawerClose = ShadcnDrawerClose;
27
28function DrawerTitle({
29 className,
30 children,
31 ...props
32}: React.ComponentProps<typeof DrawerPrimitive.Title>) {
33 return (
34 <ShadcnDrawerTitle className={cn(className)} {...props}>
35 {children}
36 </ShadcnDrawerTitle>
37 );
38}
39
40function DrawerDescription({
41 className,
42 children,
43 ...props
44}: React.ComponentProps<typeof DrawerPrimitive.Description>) {
45 return (
46 <ShadcnDrawerDescription className={cn(className)} {...props}>
47 {children}
48 </ShadcnDrawerDescription>
49 );
50}
51
52function DrawerTrigger({
53 className,
54 children,
55 asChild,
56 ...props
57}: React.ComponentProps<typeof DrawerPrimitive.Trigger>) {
58 return (
59 <ShadcnDrawerTrigger
60 className={cn(
61 // Only apply default trigger styling when NOT using asChild
62 !asChild &&
63 "border-foreground dark:border-ring hover:bg-transparent active:bg-transparent focus:bg-transparent rounded-none border-4 focus:border-foreground hover:border-foreground dark:focus:border-ring bg-transparent data-[state=open]:bg-transparent data-[state=open]:border-foreground dark:data-[state=open]:border-ring",
64 className
65 )}
66 asChild={asChild}
67 {...props}
68 >
69 {children}
70 </ShadcnDrawerTrigger>
71 );
72}
73
74export const drawerVariants = cva("", {
75 variants: {
76 font: {
77 normal: "",
78 pixel: "pixel-font",
79 },
80 },
81 defaultVariants: {
82 font: "pixel",
83 },
84});
85
86export type DrawerProps = React.ComponentProps<typeof DrawerPrimitive.Content> &
87 VariantProps<typeof drawerVariants> & {
88 side?: "right" | "bottom" | "left";
89 };
90
91function DrawerContent({
92 className,
93 children,
94 side = "bottom",
95 ...props
96}: DrawerProps) {
97 return (
98 <ShadcnDrawerPortal data-slot="drawer-portal">
99// … truncated

What it pulls in

Other registry items

  • drawer

Files it writes

  • components/ui/pixelact-ui/drawer.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