{
  "title": "Table 1",
  "description": "A clean data table listing system events with timestamp, severity, and message columns.",
  "name": "dashboard-table-1",
  "dependencies": [],
  "registryDependencies": [
    "badge",
    "card",
    "table"
  ],
  "type": "registry:block",
  "files": [
    {
      "path": "components/blocks/dashboard/table/table-1.tsx",
      "type": "registry:block",
      "content": "import { ClockFadingIcon } from \"lucide-react\";\n\nimport { Badge } from \"@/components/ui/badge\";\nimport { Card, CardContent, CardDescription, CardHeader, CardTitle } from \"@/components/ui/card\";\nimport { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from \"@/components/ui/table\";\n\nconst data = [\n    { id: \"1\", method: \"GET\", path: \"/v1/users\", status: 200, duration: \"12ms\", time: \"just now\" },\n    { id: \"2\", method: \"POST\", path: \"/v1/auth/login\", status: 201, duration: \"45ms\", time: \"15 mins ago\" },\n    { id: \"3\", method: \"DELETE\", path: \"/v1/billing\", status: 404, duration: \"8ms\", time: \"2 hours ago\" },\n    { id: \"4\", method: \"PATCH\", path: \"/v1/settings\", status: 500, duration: \"102ms\", time: \"Yesterday\" },\n    { id: \"5\", method: \"GET\", path: \"/v1/settings\", status: 201, duration: \"64ms\", time: \"Last week\" },\n];\n\nconst getMethodColor = (method: string) => {\n    switch (method) {\n        case \"GET\":\n        case \"POST\":\n        case \"PATCH\":\n            return \"text-primary\";\n        case \"DELETE\":\n            return \"text-destructive\";\n    }\n};\n\nexport const Table1 = () => {\n    return (\n        <Card className=\"gap-3 pt-4 pb-3\">\n            <CardHeader className=\"px-4\">\n                <div className=\"flex items-center gap-2\">\n                    <ClockFadingIcon className=\"size-4.5\" />\n                    <CardTitle>Recent Requests</CardTitle>\n                </div>\n                <CardDescription>A list of the latest API calls to your project.</CardDescription>\n            </CardHeader>\n            <CardContent className=\"px-3\">\n                <Table>\n                    <TableHeader>\n                        <TableRow className=\"bg-muted/60\">\n                            <TableHead>Method</TableHead>\n                            <TableHead>Endpoint</TableHead>\n                            <TableHead>Status</TableHead>\n                            <TableHead>Time</TableHead>\n                            <TableHead className=\"text-right\">Duration</TableHead>\n                        </TableRow>\n                    </TableHeader>\n                    <TableBody>\n                        {data.map((row) => (\n                            <TableRow key={row.id}>\n                                <TableCell className=\"text-xs font-semibold\">\n                                    <span className={getMethodColor(row.method)}>{row.method}</span>\n                                </TableCell>\n                                <TableCell className=\"font-mono text-xs\">{row.path}</TableCell>\n                                <TableCell>\n                                    <Badge variant={row.status >= 400 ? \"destructive\" : \"secondary\"}>\n                                        {row.status}\n                                    </Badge>\n                                </TableCell>\n                                <TableCell className=\"text-xs\">{row.time}</TableCell>\n                                <TableCell className=\"text-muted-foreground text-right text-xs\">\n                                    {row.duration}\n                                </TableCell>\n                            </TableRow>\n                        ))}\n                    </TableBody>\n                </Table>\n            </CardContent>\n        </Card>\n    );\n};\n"
    }
  ],
  "mcp": {
    "description": "A clean data table listing system events with timestamp, severity, and message columns. Relies on badge, card, table. Ideal when an AI agent needs to compose section layouts or application views.",
    "tags": [
      "block",
      "dashboard",
      "table"
    ]
  }
}