AspectRatioSquare() — ui Function Reference
Architecture documentation for the AspectRatioSquare() function in aspect-ratio-square.tsx from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 803d98ba_c2f7_e62b_1bf8_dd608dfa51e8["AspectRatioSquare()"] ba3febba_30ec_d774_4157_4420239db3ff["aspect-ratio-square.tsx"] 803d98ba_c2f7_e62b_1bf8_dd608dfa51e8 -->|defined in| ba3febba_30ec_d774_4157_4420239db3ff style 803d98ba_c2f7_e62b_1bf8_dd608dfa51e8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/radix/aspect-ratio-square.tsx lines 4–17
export function AspectRatioSquare() {
return (
<div className="w-full max-w-[12rem]">
<AspectRatio ratio={1 / 1} className="bg-muted rounded-lg">
<Image
src="https://avatar.vercel.sh/shadcn1"
alt="Photo"
fill
className="rounded-lg object-cover grayscale dark:brightness-20"
/>
</AspectRatio>
</div>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does AspectRatioSquare() do?
AspectRatioSquare() is a function in the ui codebase, defined in apps/v4/examples/radix/aspect-ratio-square.tsx.
Where is AspectRatioSquare() defined?
AspectRatioSquare() is defined in apps/v4/examples/radix/aspect-ratio-square.tsx at line 4.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free