Home / Function/ AspectRatioPortrait() — ui Function Reference

AspectRatioPortrait() — ui Function Reference

Architecture documentation for the AspectRatioPortrait() function in aspect-ratio-portrait.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  2735f23d_28ce_1b22_bd12_b136e521cf32["AspectRatioPortrait()"]
  3ec7e94d_7440_c345_87e1_6a5bcbc8d8c2["aspect-ratio-portrait.tsx"]
  2735f23d_28ce_1b22_bd12_b136e521cf32 -->|defined in| 3ec7e94d_7440_c345_87e1_6a5bcbc8d8c2
  style 2735f23d_28ce_1b22_bd12_b136e521cf32 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/examples/base/aspect-ratio-portrait.tsx lines 4–18

export function AspectRatioPortrait() {
  return (
    <AspectRatio
      ratio={9 / 16}
      className="bg-muted w-full max-w-[10rem] rounded-lg"
    >
      <Image
        src="https://avatar.vercel.sh/shadcn1"
        alt="Photo"
        fill
        className="rounded-lg object-cover grayscale dark:brightness-20"
      />
    </AspectRatio>
  )
}

Subdomains

Frequently Asked Questions

What does AspectRatioPortrait() do?
AspectRatioPortrait() is a function in the ui codebase, defined in apps/v4/examples/base/aspect-ratio-portrait.tsx.
Where is AspectRatioPortrait() defined?
AspectRatioPortrait() is defined in apps/v4/examples/base/aspect-ratio-portrait.tsx at line 4.

Analyze Your Own Codebase

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

Try Supermodel Free