{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "aspect-ratio",
  "type": "registry:ui",
  "title": "Aspect ratio",
  "description": "Shadcn compatible aspect ratio wrapper that locks media to a ratio such as 16:9 or 1:1 using CSS aspect-ratio, with overflow clipped for images and video.",
  "dependencies": [],
  "registryDependencies": [
    "utils"
  ],
  "files": [
    {
      "path": "registry/ui/aspect-ratio.tsx",
      "type": "registry:ui",
      "target": "components/ui/aspect-ratio.tsx",
      "content": "\"use client\"\nimport * as React from \"react\"\nimport { cn } from \"@/lib/utils\"\n\nfunction AspectRatio({\n  ratio = 16 / 9,\n  className,\n  style,\n  ...props\n}: React.ComponentProps<\"div\"> & { ratio?: number }) {\n  return (\n    <div\n      data-slot=\"aspect-ratio\"\n      className={cn(\"relative w-full overflow-hidden\", className)}\n      style={{ aspectRatio: String(ratio), ...style }}\n      {...props}\n    />\n  )\n}\nexport { AspectRatio }\n"
    }
  ]
}
