{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "aspect-ratio",
  "title": "Aspect Ratio",
  "description": "Holds media to a fixed width-to-height ratio, reserving its space before the content loads.",
  "dependencies": [],
  "registryDependencies": [
    "https://www.prfct.dev/r/utils.json"
  ],
  "files": [
    {
      "path": "components/ui/aspect-ratio.tsx",
      "content": "import { cn } from \"@/lib/utils\"\n\nfunction AspectRatio({\n  ratio,\n  className,\n  style,\n  ...props\n}: React.ComponentProps<\"div\"> & { ratio: number }) {\n  return (\n    <div\n      data-slot=\"aspect-ratio\"\n      // Merge rather than replace, so a caller's `style` (e.g. a background)\n      // can't drop the ratio variable.\n      style={{ ...style, \"--ratio\": ratio } as React.CSSProperties}\n      className={cn(\"relative aspect-(--ratio)\", className)}\n      {...props}\n    />\n  )\n}\n\nexport { AspectRatio }\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}