{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "table-example",
  "title": "데이터 표",
  "description": "정렬·검색·CSV의 계약",
  "type": "registry:component",
  "dependencies": [],
  "registryDependencies": [
    "@quant/quant-chart-runtime"
  ],
  "files": [
    {
      "path": "registry/quant/table-example.tsx",
      "target": "components/quant/table-example.tsx",
      "type": "registry:component",
      "content": "\"use client\";\nimport \"./quant.css\";\nimport {DataTable,MetricStrip,State} from \"./ui\";\nconst example = {\n  \"title\": \"거래 원장\",\n  \"columns\": [\n    {\n      \"key\": \"asset\",\n      \"label\": \"종목\"\n    },\n    {\n      \"key\": \"amount\",\n      \"label\": \"금액\",\n      \"unit\": \"원\",\n      \"numeric\": true\n    },\n    {\n      \"key\": \"date\",\n      \"label\": \"거래일\"\n    }\n  ],\n  \"rows\": [\n    {\n      \"id\": \"alpha\",\n      \"cells\": {\n        \"asset\": \"ALFA\",\n        \"amount\": 1200000,\n        \"date\": \"2026-03-02\"\n      }\n    },\n    {\n      \"id\": \"beta\",\n      \"cells\": {\n        \"asset\": \"BETA\",\n        \"amount\": 850000,\n        \"date\": \"2026-03-04\"\n      }\n    },\n    {\n      \"id\": \"gamma\",\n      \"cells\": {\n        \"asset\": \"GAMA\",\n        \"amount\": null,\n        \"date\": \"2026-03-06\"\n      }\n    }\n  ]\n};\nexport function Example(){ return <DataTable label={example.title} columns={example.columns} rows={example.rows} downloadName=\"example.csv\"/>; }\n"
    }
  ]
}
