{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "excel-editor",
  "title": "Excel Editor",
  "description": "A full Excel editor block with workbook upload, cell formatting, merge tools, sheets, zoom, and export controls.",
  "registryDependencies": [
    "@extend/xlsx-editor"
  ],
  "files": [
    {
      "path": "registry/new-york-v4/blocks/excel-editor.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport { XlsxEditorPreview } from \"@/components/extend/xlsx-editor\"\n\nexport function ExcelEditorBlock({\n  file,\n  heightClassName = \"h-[720px]\",\n}: {\n  file?: string\n  heightClassName?: string\n}) {\n  const [isDark, setIsDark] = React.useState(false)\n  return (\n    <div className={`${heightClassName} min-h-0 overflow-hidden bg-background`}>\n      <XlsxEditorPreview\n        className=\"h-full min-h-0 [&>div]:!h-full\"\n        src={file ?? \"/samples/crazy-chart-zoo.xlsx\"}\n        isDark={isDark}\n        onIsDarkChange={setIsDark}\n      />\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "@components/blocks/excel-editor.tsx"
    }
  ],
  "categories": [
    "documents",
    "blocks"
  ],
  "type": "registry:block",
  "dependencies": []
}
