Home / Function/ AspectRatioDemo() — ui Function Reference

AspectRatioDemo() — ui Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  d51f6f69_5250_b71f_c7aa_88981e864a58["AspectRatioDemo()"]
  da0a40ea_a2e7_6183_e93b_3424828963ed["aspect-ratio-demo.tsx"]
  d51f6f69_5250_b71f_c7aa_88981e864a58 -->|defined in| da0a40ea_a2e7_6183_e93b_3424828963ed
  style d51f6f69_5250_b71f_c7aa_88981e864a58 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

deprecated/www/registry/default/internal/sink/components/aspect-ratio-demo.tsx lines 5–16

export function AspectRatioDemo() {
  return (
    <AspectRatio ratio={16 / 9} className="bg-muted">
      <Image
        src="https://images.unsplash.com/photo-1588345921523-c2dcdb7f1dcd?w=800&dpr=2&q=80"
        alt="Photo by Drew Beamer"
        fill
        className="h-full w-full rounded-md object-cover"
      />
    </AspectRatio>
  )
}

Subdomains

Frequently Asked Questions

What does AspectRatioDemo() do?
AspectRatioDemo() is a function in the ui codebase, defined in deprecated/www/registry/default/internal/sink/components/aspect-ratio-demo.tsx.
Where is AspectRatioDemo() defined?
AspectRatioDemo() is defined in deprecated/www/registry/default/internal/sink/components/aspect-ratio-demo.tsx at line 5.

Analyze Your Own Codebase

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

Try Supermodel Free