drawer
agentmesh/drawerFreeComponent
shadcn/ui publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by shadcn/ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://raw.githubusercontent.com/ombhanushaliii/agentmesh/main/example/ui/apps/v4/public/r/styles/base-vega/drawer.jsonSource
1"use client"23import * as React from "react"4import { Drawer as DrawerPrimitive } from "vaul"56import { cn } from "@/registry/base-vega/lib/utils"78function Drawer({9 ...props10}: React.ComponentProps<typeof DrawerPrimitive.Root>) {11 return <DrawerPrimitive.Root data-slot="drawer" {...props} />12}1314function DrawerTrigger({15 ...props16}: React.ComponentProps<typeof DrawerPrimitive.Trigger>) {17 return <DrawerPrimitive.Trigger data-slot="drawer-trigger" {...props} />18}1920function DrawerPortal({21 ...props22}: React.ComponentProps<typeof DrawerPrimitive.Portal>) {23 return <DrawerPrimitive.Portal data-slot="drawer-portal" {...props} />24}2526function DrawerClose({27 ...props28}: React.ComponentProps<typeof DrawerPrimitive.Close>) {29 return <DrawerPrimitive.Close data-slot="drawer-close" {...props} />30}3132function DrawerOverlay({33 className,34 ...props35}: React.ComponentProps<typeof DrawerPrimitive.Overlay>) {36 return (37 <DrawerPrimitive.Overlay38 data-slot="drawer-overlay"39 className={cn(40 "fixed inset-0 z-50 bg-black/10 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",41 className42 )}43 {...props}44 />45 )46}4748function DrawerContent({49 className,50 children,51 ...props52}: React.ComponentProps<typeof DrawerPrimitive.Content>) {53 return (54 <DrawerPortal data-slot="drawer-portal">55 <DrawerOverlay />56 <DrawerPrimitive.Content57 data-slot="drawer-content"58 className={cn(59// … truncated
What it pulls in
npm packages
Files it writes
More from shadcn/ui
All 201 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | shadcn/ui | Components | Free | no deps | |
| alertalert | shadcn/ui | Components | Free | no deps | |
| alert-dialogalert-dialog | shadcn/ui | Components | Free | no deps | |
| aspect-ratioaspect-ratio | shadcn/ui | Components | Free | no deps | |
| avataravatar | shadcn/ui | Components | Free | no deps | |
| badgebadge | shadcn/ui | Components | Free | no deps | |
| breadcrumbbreadcrumb | shadcn/ui | Components | Free | no deps | |
| buttonbutton | shadcn/ui | Components | Free | no deps |
