{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"aspect-ratio","title":"Aspect Ratio","description":"Constrains its content to a fixed width-to-height ratio so media, embeds, and placeholders keep their shape at any container size.","dependencies":["cn"],"files":[{"path":"components/ui/aspect-ratio.tsx","content":"import { cn } from \"cn\"\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      style={\n        {\n          \"--ratio\": ratio,\n          ...style,\n        } as React.CSSProperties\n      }\n      className={cn(\"relative aspect-(--ratio)\", className)}\n      {...props}\n    />\n  )\n}\n\nexport { AspectRatio }\n","type":"registry:ui"}],"categories":["layout"],"type":"registry:ui"}