Home / Function/ DrawerContent() — ui Function Reference

DrawerContent() — ui Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  03d4babc_b5aa_2ee6_acee_3f825345adda["DrawerContent()"]
  75f35f47_95df_d9d1_0747_61c26cba5334["drawer.tsx"]
  03d4babc_b5aa_2ee6_acee_3f825345adda -->|defined in| 75f35f47_95df_d9d1_0747_61c26cba5334
  style 03d4babc_b5aa_2ee6_acee_3f825345adda fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/new-york/ui/drawer.tsx lines 40–55

>(({ className, children, ...props }, ref) => (
  <DrawerPortal>
    <DrawerOverlay />
    <DrawerPrimitive.Content
      ref={ref}
      className={cn(
        "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
        className
      )}
      {...props}
    >
      <div className="mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" />
      {children}
    </DrawerPrimitive.Content>
  </DrawerPortal>
))

Subdomains

Frequently Asked Questions

What does DrawerContent() do?
DrawerContent() is a function in the ui codebase, defined in deprecated/www/registry/new-york/ui/drawer.tsx.
Where is DrawerContent() defined?
DrawerContent() is defined in deprecated/www/registry/new-york/ui/drawer.tsx at line 40.

Analyze Your Own Codebase

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

Try Supermodel Free