{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "extends": "none",
  "name": "table-bulk-example",
  "title": "Table Bulk",
  "description": "table-bulk-example",
  "dependencies": [
    "react-aria-components"
  ],
  "registryDependencies": [
    "https://intentui.com/r/field",
    "https://intentui.com/r/table"
  ],
  "files": [
    {
      "path": "src/components/examples/collections/table/table-bulk-example.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport type { Selection } from \"react-aria-components/GridList\"\nimport { Description } from \"@/components/ui/field\"\nimport {\n  Table,\n  TableBody,\n  TableCell,\n  TableColumn,\n  TableHeader,\n  TableRow,\n} from \"@/components/ui/table\"\n\nexport default function TableBulkDemo() {\n  const [selectedKeys, setSelectedKeys] = useState<Selection>(new Set())\n  return (\n    <div className=\"rounded-lg border p-4\">\n      <Table\n        aria-label=\"Books\"\n        selectionMode=\"multiple\"\n        selectedKeys={selectedKeys}\n        onSelectionChange={setSelectedKeys}\n      >\n        <TableHeader>\n          <TableColumn className=\"w-0\">#</TableColumn>\n          <TableColumn isRowHeader>Title</TableColumn>\n          <TableColumn>Author</TableColumn>\n          <TableColumn>Genre</TableColumn>\n          <TableColumn>Published</TableColumn>\n        </TableHeader>\n        <TableBody items={books}>\n          {(item) => (\n            <TableRow>\n              <TableCell>{item.id}</TableCell>\n              <TableCell className=\"whitespace-nowrap\">{item.title}</TableCell>\n              <TableCell className=\"whitespace-nowrap\">{item.author}</TableCell>\n              <TableCell>{item.genre}</TableCell>\n              <TableCell>{item.publishedYear}</TableCell>\n            </TableRow>\n          )}\n        </TableBody>\n      </Table>\n      <Description className=\"mt-2 block text-muted-foreground [&>strong]:text-foreground\">\n        {Array.from(selectedKeys).length > 0 ? (\n          <>\n            You have selected: <strong>{Array.from(selectedKeys).join(\", \")}</strong>\n          </>\n        ) : (\n          \"You have not selected anything.\"\n        )}\n      </Description>\n    </div>\n  )\n}\n\nexport const books = [\n  {\n    id: \"1\",\n    title: \"To Kill a Mockingbird\",\n    author: \"Harper Lee\",\n    genre: \"Fiction\",\n    publishedYear: 1960,\n  },\n  {\n    id: \"2\",\n    title: \"1984\",\n    author: \"George Orwell\",\n    genre: \"Dystopian\",\n    publishedYear: 1949,\n  },\n  {\n    id: \"3\",\n    title: \"The Great Gatsby\",\n    author: \"F. Scott Fitzgerald\",\n    genre: \"Fiction\",\n    publishedYear: 1925,\n  },\n  {\n    id: \"4\",\n    title: \"The Catcher in the Rye\",\n    author: \"J.D. Salinger\",\n    genre: \"Fiction\",\n    publishedYear: 1951,\n  },\n  {\n    id: \"5\",\n    title: \"Pride and Prejudice\",\n    author: \"Jane Austen\",\n    genre: \"Romance\",\n    publishedYear: 1813,\n  },\n  {\n    id: \"6\",\n    title: \"The Lord of the Rings\",\n    author: \"J.R.R. Tolkien\",\n    genre: \"Fantasy\",\n    publishedYear: 1954,\n  },\n  {\n    id: \"7\",\n    title: \"Harry Potter and the Sorcerer's Stone\",\n    author: \"J.K. Rowling\",\n    genre: \"Fantasy\",\n    publishedYear: 1997,\n  },\n]\n",
      "type": "registry:page",
      "target": "app/table-bulk-example/page.tsx"
    }
  ],
  "type": "registry:page"
}