{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "matrix-demo",
  "title": "Matrix Demo",
  "description": "A worked example of Matrix: A grid of cells lit from the bottom by a level, which reads as a piece of hardware rather than as a chart.",
  "registryDependencies": [
    "https://ui.tinkererslabs.com/r/matrix.json"
  ],
  "files": [
    {
      "path": "components/demos/matrix-demo.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport { Matrix } from \"@/registry/default/matrix/matrix\"\n\nexport function MatrixDemo() {\n  const [level, setLevel] = React.useState(0.3)\n\n  React.useEffect(() => {\n    const timer = setInterval(() => setLevel(0.2 + Math.random() * 0.75), 160)\n    return () => clearInterval(timer)\n  }, [])\n\n  return <Matrix className=\"h-32 w-full max-w-md\" level={level} columns={28} />\n}\n",
      "type": "registry:example"
    }
  ],
  "type": "registry:example"
}