aspect-ratio.tsx — ui Source File
Architecture documentation for aspect-ratio.tsx, a tsx file in the ui codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 08ba85bc_4a72_7534_97c6_c051ae00d1a0["aspect-ratio.tsx"] 8ad666ec_1b20_adda_0392_87a60bdb3a68["utils"] 08ba85bc_4a72_7534_97c6_c051ae00d1a0 --> 8ad666ec_1b20_adda_0392_87a60bdb3a68 style 08ba85bc_4a72_7534_97c6_c051ae00d1a0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { cn } from "@/registry/bases/base/lib/utils"
function AspectRatio({
ratio,
className,
...props
}: React.ComponentProps<"div"> & { ratio: number }) {
return (
<div
data-slot="aspect-ratio"
style={
{
"--ratio": ratio,
} as React.CSSProperties
}
className={cn("relative aspect-(--ratio)", className)}
{...props}
/>
)
}
export { AspectRatio }
Domain
Subdomains
Functions
Dependencies
- utils
Source
Frequently Asked Questions
What does aspect-ratio.tsx do?
aspect-ratio.tsx is a source file in the ui codebase, written in tsx. It belongs to the ComponentRegistry domain, UIPrimitives subdomain.
What functions are defined in aspect-ratio.tsx?
aspect-ratio.tsx defines 1 function(s): AspectRatio.
What does aspect-ratio.tsx depend on?
aspect-ratio.tsx imports 1 module(s): utils.
Where is aspect-ratio.tsx in the architecture?
aspect-ratio.tsx is located at apps/v4/registry/bases/base/ui/aspect-ratio.tsx (domain: ComponentRegistry, subdomain: UIPrimitives, directory: apps/v4/registry/bases/base/ui).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free