aspect-ratio-demo.tsx — ui Source File
Architecture documentation for aspect-ratio-demo.tsx, a tsx file in the ui codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR cfb05e7b_a321_ae84_d3cc_dab54f32ca74["aspect-ratio-demo.tsx"] 3eb36dd7_f51a_1431_02e2_7abafe315718["image"] cfb05e7b_a321_ae84_d3cc_dab54f32ca74 --> 3eb36dd7_f51a_1431_02e2_7abafe315718 942bafcb_5b5e_4bfc_e5a0_ee6637e6ed65["aspect-ratio"] cfb05e7b_a321_ae84_d3cc_dab54f32ca74 --> 942bafcb_5b5e_4bfc_e5a0_ee6637e6ed65 style cfb05e7b_a321_ae84_d3cc_dab54f32ca74 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import Image from "next/image"
import { AspectRatio } from "@/examples/radix/ui/aspect-ratio"
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
Functions
Dependencies
- aspect-ratio
- image
Source
Frequently Asked Questions
What does aspect-ratio-demo.tsx do?
aspect-ratio-demo.tsx is a source file in the ui codebase, written in tsx. It belongs to the DocumentationAtlas domain, Changelog subdomain.
What functions are defined in aspect-ratio-demo.tsx?
aspect-ratio-demo.tsx defines 1 function(s): AspectRatioDemo.
What does aspect-ratio-demo.tsx depend on?
aspect-ratio-demo.tsx imports 2 module(s): aspect-ratio, image.
Where is aspect-ratio-demo.tsx in the architecture?
aspect-ratio-demo.tsx is located at apps/v4/examples/radix/aspect-ratio-demo.tsx (domain: DocumentationAtlas, subdomain: Changelog, directory: apps/v4/examples/radix).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free