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 12bbedc1_a38e_13f5_e38c_7925b0595eb8["AspectRatioDemo()"] 7dbb93a4_7393_f20d_c7ef_3aa4f9ed8fb1["aspect-ratio-demo.tsx"] 12bbedc1_a38e_13f5_e38c_7925b0595eb8 -->|defined in| 7dbb93a4_7393_f20d_c7ef_3aa4f9ed8fb1 style 12bbedc1_a38e_13f5_e38c_7925b0595eb8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/base/aspect-ratio-demo.tsx lines 4–15
export default function AspectRatioDemo() {
return (
<AspectRatio ratio={16 / 9} className="bg-muted w-full max-w-sm rounded-lg">
<Image
src="https://avatar.vercel.sh/shadcn1"
alt="Photo"
fill
className="rounded-lg object-cover grayscale dark:brightness-20"
/>
</AspectRatio>
)
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does AspectRatioDemo() do?
AspectRatioDemo() is a function in the ui codebase, defined in apps/v4/examples/base/aspect-ratio-demo.tsx.
Where is AspectRatioDemo() defined?
AspectRatioDemo() is defined in apps/v4/examples/base/aspect-ratio-demo.tsx at line 4.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free