MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / DrawerContent

Function DrawerContent

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

Source from the content-addressed store, hash-verified

36}
37
38function DrawerContent({
39 className,
40 children,
41 ...props
42}: React.ComponentProps<typeof DrawerPrimitive.Content>) {
43 return (
44 <DrawerPortal data-slot="drawer-portal">
45 <DrawerOverlay />
46 <DrawerPrimitive.Content
47 data-slot="drawer-content"
48 className={cn(
49 "group/drawer-content fixed z-50 flex h-auto flex-col bg-background",
50 "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",
51 "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",
52 "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",
53 "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",
54 className,
55 )}
56 {...props}
57 >
58 <div className="mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full bg-muted group-data-[vaul-drawer-direction=bottom]/drawer-content:block" />
59 {children}
60 </DrawerPrimitive.Content>
61 </DrawerPortal>
62 );
63}
64
65function DrawerHeader({ className, ...props }: React.ComponentProps<"div">) {
66 return (

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected