Home / Function/ DrawerHeader() — ui Function Reference

DrawerHeader() — ui Function Reference

Architecture documentation for the DrawerHeader() function in drawer.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  7701d0af_3043_a3b3_5a03_e0ed3d086874["DrawerHeader()"]
  2b724270_13cc_5d5d_74db_61f240d302ac["drawer.tsx"]
  7701d0af_3043_a3b3_5a03_e0ed3d086874 -->|defined in| 2b724270_13cc_5d5d_74db_61f240d302ac
  style 7701d0af_3043_a3b3_5a03_e0ed3d086874 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/radix/ui-rtl/drawer.tsx lines 70–81

function DrawerHeader({ className, ...props }: React.ComponentProps<"div">) {
  return (
    <div
      data-slot="drawer-header"
      className={cn(
        "flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-0.5 md:text-start",
        className
      )}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does DrawerHeader() do?
DrawerHeader() is a function in the ui codebase, defined in apps/v4/examples/radix/ui-rtl/drawer.tsx.
Where is DrawerHeader() defined?
DrawerHeader() is defined in apps/v4/examples/radix/ui-rtl/drawer.tsx at line 70.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free