MCPcopy
hub / github.com/TheOrcDev/8bitcn-ui / DrawerContent

Function DrawerContent

components/ui/drawer.tsx:49–74  ·  view source on GitHub ↗
({
  className,
  children,
  ...props
}: React.ComponentProps<typeof DrawerPrimitive.Content>)

Source from the content-addressed store, hash-verified

47}
48
49function DrawerContent({
50 className,
51 children,
52 ...props
53}: React.ComponentProps<typeof DrawerPrimitive.Content>) {
54 return (
55 <DrawerPortal data-slot="drawer-portal">
56 <DrawerOverlay />
57 <DrawerPrimitive.Content
58 data-slot="drawer-content"
59 className={cn(
60 "group/drawer-content bg-background fixed z-50 flex h-auto flex-col",
61 "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b",
62 "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t",
63 "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm",
64 "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",
65 className
66 )}
67 {...props}
68 >
69 <div className="bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" />
70 {children}
71 </DrawerPrimitive.Content>
72 </DrawerPortal>
73 );
74}
75
76function DrawerHeader({ className, ...props }: React.ComponentProps<"div">) {
77 return (

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected