Drawer Demo
loomui/drawer-demoFreeExample
A drawer from the bottom edge, pulled open or swiped away by its notch.
Install it
npx shadcn@latest add https://loomui.design/r/drawer-demo.jsonSource
1"use client"23import {4 Drawer,5 DrawerClose,6 DrawerContent,7 DrawerDescription,8 DrawerHeader,9 DrawerTitle,10 DrawerTrigger,11} from "@/registry/loomui/drawer"1213const BUTTON =14 "border-border bg-background hover:bg-accent hover:text-accent-foreground focus-visible:ring-ring/60 inline-flex cursor-pointer items-center justify-center rounded-md border px-4 py-2 text-sm font-medium transition-colors focus-visible:ring-2 focus-visible:outline-none active:scale-[0.98]"1516export default function DrawerDemo() {17 return (18 <Drawer>19 <DrawerTrigger className={BUTTON}>Open drawer</DrawerTrigger>2021 <DrawerContent side="bottom">22 <DrawerHeader>23 <DrawerTitle>Thread settings</DrawerTitle>24 <DrawerDescription>25 Drag anywhere on the panel to send it away.26 </DrawerDescription>27 </DrawerHeader>2829 <DrawerClose className={`${BUTTON} mt-auto self-start`}>30 Done31 </DrawerClose>32 </DrawerContent>33 </Drawer>34 )35}
What it pulls in
Other registry items
Files it writes
More from loomui
All 91 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Aurora Backdrop Demoaurora-backdrop-demo | loomui | Examples | Free | no deps | |
| Bento Grid Demobento-grid-demo | loomui | Examples | Free | no deps | |
| Card Stack Democard-stack-demo | loomui | Examples | Free | no deps | |
| Compare Slider Democompare-slider-demo | loomui | Examples | Free | no deps | |
| Confetti Button Democonfetti-button-demo | loomui | Examples | Free | no deps | |
| Count Up Democount-up-demo | loomui | Examples | Free | no deps | |
| Credit Card Democredit-card-demo | loomui | Examples | Free | no deps | |
| Elastic Tabs Demoelastic-tabs-demo | loomui | Examples | Free | no deps |
