shadimage
Shadcn UI
uiaspect-ratiosource: ok · hit

Aspect Ratio

npx shadcn add "https://ui.shadcn.com/r/styles/new-york-v4/aspect-ratio.json"
free

No selection tags yet — empty means no evidence, not lack of support.

Dependencies

Bundle weight · light
radix-ui

Files1 · source cached 10/15/2026, 3:59:42 AM

registry/new-york-v4/ui/aspect-ratio.tsx
"use client"

import { AspectRatio as AspectRatioPrimitive } from "radix-ui"

function AspectRatio({
  ...props
}: React.ComponentProps<typeof AspectRatioPrimitive.Root>) {
  return <AspectRatioPrimitive.Root data-slot="aspect-ratio" {...props} />
}

export { AspectRatio }

More from Shadcn UI

Browse all components in this library →