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 b170b89e_9a59_657a_d320_00204400dc17["AspectRatioDemo()"] cfb05e7b_a321_ae84_d3cc_dab54f32ca74["aspect-ratio-demo.tsx"] b170b89e_9a59_657a_d320_00204400dc17 -->|defined in| cfb05e7b_a321_ae84_d3cc_dab54f32ca74 style b170b89e_9a59_657a_d320_00204400dc17 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/radix/aspect-ratio-demo.tsx lines 4–17
export default function AspectRatioDemo() {
return (
<div className="w-full max-w-sm">
<AspectRatio ratio={16 / 9} className="bg-muted rounded-lg">
<Image
src="https://avatar.vercel.sh/shadcn1"
alt="Photo"
fill
className="w-full rounded-lg object-cover grayscale dark:brightness-20"
/>
</AspectRatio>
</div>
)
}
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/radix/aspect-ratio-demo.tsx.
Where is AspectRatioDemo() defined?
AspectRatioDemo() is defined in apps/v4/examples/radix/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