{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "aspect-ratio",
  "type": "registry:ui",
  "title": "Aspect Ratio",
  "description": "A frame that keeps media at a fixed ratio.",
  "categories": [
    "layout"
  ],
  "dependencies": [],
  "registryDependencies": [
    "https://sprout.tulipfarm.ai/r/sprout-base.json"
  ],
  "files": [
    {
      "path": "registry/sprout/components/ui/aspect-ratio.tsx",
      "type": "registry:ui",
      "target": "components/ui/aspect-ratio.tsx",
      "content": "import type { ComponentProps, CSSProperties } from 'react';\nimport { cn } from '@/lib/sprout/classes';\n\nexport interface AspectRatioProps extends ComponentProps<'div'> {\n  ratio: number;\n}\n\nexport function AspectRatio({ ratio, className, style, ...props }: AspectRatioProps) {\n  return (\n    <div\n      data-slot=\"aspect-ratio\"\n      className={cn('sprout-aspect-ratio', className)}\n      style={{ ...style, '--sprout-aspect-ratio': ratio } as CSSProperties}\n      {...props}\n    />\n  );\n}\n"
    }
  ],
  "css": {
    "@layer components": {
      ".sprout-aspect-ratio": {
        "aspect-ratio": "var(--sprout-aspect-ratio, 1)",
        "min-height": "0",
        "position": "relative"
      }
    }
  },
  "docs": "Docs and examples: https://sprout.tulipfarm.ai/components/aspect-ratio/",
  "meta": {
    "source": "packages/sprout/src/components/aspect-ratio.tsx"
  }
}
