MCPcopy Create free account
hub / github.com/code-with-antonio/nodebase / DrawerContent

Function DrawerContent

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

Source from the content-addressed store, hash-verified

46}
47
48function DrawerContent({
49 className,
50 children,
51 ...props
52}: React.ComponentProps<typeof DrawerPrimitive.Content>) {
53 return (
54 <DrawerPortal data-slot="drawer-portal">
55 <DrawerOverlay />
56 <DrawerPrimitive.Content
57 data-slot="drawer-content"
58 className={cn(
59 "group/drawer-content bg-background fixed z-50 flex h-auto flex-col",
60 "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",
61 "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",
62 "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",
63 "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",
64 className
65 )}
66 {...props}
67 >
68 <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" />
69 {children}
70 </DrawerPrimitive.Content>
71 </DrawerPortal>
72 )
73}
74
75function DrawerHeader({ className, ...props }: React.ComponentProps<"div">) {
76 return (

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected