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 61c2540d_3726_6ae1_2fbe_8886e061a046["AspectRatioSquare()"] acbb5790_c24f_158e_b31f_2bded91fc5a8["aspect-ratio-square.tsx"] 61c2540d_3726_6ae1_2fbe_8886e061a046 -->|defined in| acbb5790_c24f_158e_b31f_2bded91fc5a8 style 61c2540d_3726_6ae1_2fbe_8886e061a046 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/v4/examples/base/aspect-ratio-square.tsx lines 4–18
export function AspectRatioSquare() {
return (
<AspectRatio
ratio={1 / 1}
className="bg-muted w-full max-w-[12rem] rounded-lg"
>
<Image
src="https://avatar.vercel.sh/shadcn1"
alt="Photo"
fill
className="rounded-lg object-cover grayscale dark:brightness-20"
/>
</AspectRatio>
)
}
Domain
Subdomains
Source
Frequently Asked Questions
What does AspectRatioSquare() do?
AspectRatioSquare() is a function in the ui codebase, defined in apps/v4/examples/base/aspect-ratio-square.tsx.
Where is AspectRatioSquare() defined?
AspectRatioSquare() is defined in apps/v4/examples/base/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