{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "empty-state",
  "title": "Empty State",
  "type": "registry:block",
  "files": [
    {
      "path": "packages/registry-native/blocks/empty-state/EmptyState.tsx",
      "content": "import * as React from 'react'\nimport { View, type ViewProps } from 'react-native'\nimport { cn } from '@/lib/utils'\nimport { Button } from '@/components/ui/button'\nimport { Text } from '@/components/ui/text'\n\nexport interface EmptyStateProps extends ViewProps {\n  className?: string\n  /** Decorative icon rendered inside a muted circle. */\n  icon?: React.ReactNode\n  title: string\n  description?: string\n  /** The action button renders only when both `actionLabel` and `onAction` are supplied. */\n  actionLabel?: string\n  onAction?: () => void\n}\n\n/** Centered no-content section that explains what is missing and offers\n *  the next action instead of a dead end. */\nfunction EmptyState({ className, icon, title, description, actionLabel, onAction, ...props }: EmptyStateProps) {\n  return (\n    <View className={cn('items-center gap-3 px-6 py-10', className)} {...props}>\n      {icon ? (\n        <View\n          aria-hidden\n          className=\"bg-muted h-14 w-14 items-center justify-center rounded-full\"\n        >\n          {icon}\n        </View>\n      ) : null}\n      <View className=\"items-center gap-1\">\n        <Text size=\"lg\" className=\"text-center font-semibold\" accessibilityRole=\"header\">\n          {title}\n        </Text>\n        {description ? (\n          <Text variant=\"muted\" size=\"sm\" className=\"text-center\">\n            {description}\n          </Text>\n        ) : null}\n      </View>\n      {actionLabel && onAction ? (\n        <Button accessibilityLabel={actionLabel} onPress={onAction} className=\"mt-2\">\n          {actionLabel}\n        </Button>\n      ) : null}\n    </View>\n  )\n}\n\nexport { EmptyState }\n",
      "type": "registry:block",
      "target": "~/components/blocks/empty-state/EmptyState.tsx"
    },
    {
      "path": "packages/registry-native/blocks/empty-state/index.ts",
      "content": "export { EmptyState, type EmptyStateProps } from './EmptyState'\n",
      "type": "registry:block",
      "target": "~/components/blocks/empty-state/index.ts"
    }
  ],
  "dependencies": [],
  "devDependencies": [],
  "registryDependencies": [
    "https://native.uipkge.dev/r/native/button.json",
    "https://native.uipkge.dev/r/native/text.json"
  ],
  "description": "Centered no-content section with an optional icon medallion, headline, explanation, and one recovery action. Built from Text and Button primitives.",
  "categories": [
    "feedback"
  ]
}