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
  34679e53_6253_bbe0_f1b6_fcf6e7d616b6["DrawerHeader()"]
  65dddf82_0992_932d_abd9_4edb4ea4a696["drawer.tsx"]
  34679e53_6253_bbe0_f1b6_fcf6e7d616b6 -->|defined in| 65dddf82_0992_932d_abd9_4edb4ea4a696
  style 34679e53_6253_bbe0_f1b6_fcf6e7d616b6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/registry/new-york-v4/ui/drawer.tsx lines 75–86

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-1.5 md:text-left",
        className
      )}
      {...props}
    />
  )
}

Subdomains

Frequently Asked Questions

What does DrawerHeader() do?
DrawerHeader() is a function in the ui codebase, defined in apps/v4/registry/new-york-v4/ui/drawer.tsx.
Where is DrawerHeader() defined?
DrawerHeader() is defined in apps/v4/registry/new-york-v4/ui/drawer.tsx at line 75.

Analyze Your Own Codebase

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

Try Supermodel Free