{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "aspect-ratio",
  "title": "Aspect Ratio",
  "type": "registry:ui",
  "files": [
    {
      "path": "packages/registry-native/components/aspect-ratio/AspectRatio.tsx",
      "content": "import * as React from 'react'\nimport { View, type ViewProps } from 'react-native'\nimport { cn } from '@/lib/utils'\n\nexport interface AspectRatioProps extends ViewProps {\n  ratio?: number\n  className?: string\n}\n\nexport const AspectRatio = React.forwardRef<React.ComponentRef<typeof View>, AspectRatioProps>(\n  ({ ratio = 16 / 9, className, style, ...props }, ref) => (\n    <View\n      ref={ref}\n      {...props}\n      className={cn('relative overflow-hidden', className)}\n      style={[{ width: '100%', aspectRatio: Number.isFinite(ratio) && ratio > 0 ? ratio : 1 }, style]}\n    />\n  ),\n)\nAspectRatio.displayName = 'AspectRatio'\n",
      "type": "registry:ui",
      "target": "~/components/ui/aspect-ratio/AspectRatio.tsx"
    },
    {
      "path": "packages/registry-native/components/aspect-ratio/index.ts",
      "content": "export * from './AspectRatio'\n",
      "type": "registry:ui",
      "target": "~/components/ui/aspect-ratio/index.ts"
    }
  ],
  "dependencies": [],
  "devDependencies": [],
  "registryDependencies": [],
  "description": "Native aspect-ratio container for images, video, and other media.",
  "categories": [
    "layout"
  ]
}