{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"aspect-ratio","title":"Aspect Ratio","author":"brijr","description":"Constrains content to a fixed width-to-height ratio.","dependencies":["cn"],"files":[{"path":"components/ui/aspect-ratio.tsx","content":"import * as React from \"react\"\nimport { cn } from \"cn\"\n\nfunction AspectRatio({\n  className,\n  ratio = 1,\n  style,\n  ...props\n}: React.ComponentProps<\"div\"> & { ratio?: number }) {\n  return (\n    <div\n      data-slot=\"aspect-ratio\"\n      // Dynamic ratio prop requires an inline style; theme styling stays in className.\n      // eslint-disable-next-line shadcn/no-inline-styles -- API: ratio → aspectRatio\n      style={{ aspectRatio: ratio, ...style }}\n      className={cn(\"relative w-full\", className)}\n      {...props}\n    />\n  )\n}\n\nexport { AspectRatio }\n","type":"registry:ui"}],"type":"registry:ui"}