{"id":42421865,"url":"https://github.com/dacsang97/tanstack-table-vue","last_synced_at":"2026-01-31T11:03:15.594Z","repository":{"id":286749368,"uuid":"962424309","full_name":"dacsang97/tanstack-table-vue","owner":"dacsang97","description":"TanStack Table Vue is a wrapper library that simplifies using TanStack Table (formerly React Table) with Vue.js. It eliminates the need for JSX and render functions by leveraging Vue's scoped slots and template system.","archived":false,"fork":false,"pushed_at":"2025-04-14T03:51:34.000Z","size":101,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-28T16:51:55.052Z","etag":null,"topics":["no-jsx","tanstack-table","vue"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dacsang97.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-08T06:21:59.000Z","updated_at":"2025-12-24T12:06:33.000Z","dependencies_parsed_at":"2025-04-08T07:40:58.475Z","dependency_job_id":null,"html_url":"https://github.com/dacsang97/tanstack-table-vue","commit_stats":null,"previous_names":["dacsang97/tanstack-table-vue"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/dacsang97/tanstack-table-vue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacsang97%2Ftanstack-table-vue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacsang97%2Ftanstack-table-vue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacsang97%2Ftanstack-table-vue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacsang97%2Ftanstack-table-vue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dacsang97","download_url":"https://codeload.github.com/dacsang97/tanstack-table-vue/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dacsang97%2Ftanstack-table-vue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28939508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T10:18:23.202Z","status":"ssl_error","status_checked_at":"2026-01-31T10:18:22.693Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["no-jsx","tanstack-table","vue"],"created_at":"2026-01-28T03:00:03.930Z","updated_at":"2026-01-31T11:03:15.588Z","avatar_url":"https://github.com/dacsang97.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TanStack Table Vue\n\n\u003e **No more render functions, just Vue!** — Simple, type-safe TanStack Table integration for Vue.js\n\nTanStack Table Vue is a wrapper library that simplifies using TanStack Table (formerly React Table) with Vue.js. It eliminates the need for JSX and render functions by leveraging Vue's scoped slots and template system.\n\n## 🌟 Features\n\n- ✅ **No JSX Required** - Define columns with plain objects, not render functions\n- ✅ **Vue Idiomatic** - Uses scoped slots and Vue template syntax\n- ✅ **Type-Safe** - Full TypeScript support with generics\n- ✅ **Flexible** - Supports all TanStack Table features including sorting, grouping, and more\n- ✅ **Simple API** - Easy to understand and use\n- ✅ **Lightweight** - Minimal abstraction over TanStack Table\n\n## 📦 Installation\n\n```bash\n# npm\nnpm install tanstack-table-vue @tanstack/vue-table\n\n# yarn\nyarn add tanstack-table-vue @tanstack/vue-table\n\n# pnpm\npnpm add tanstack-table-vue @tanstack/vue-table\n\n# bun\nbun add tanstack-table-vue @tanstack/vue-table\n```\n\n## 🚀 Quick Start\n\n```vue\n\u003cscript setup lang=\"ts\"\u003e\nimport { TSTable } from 'tanstack-table-vue'\nimport { createColumnHelper, getCoreRowModel, getSortedRowModel } from '@tanstack/vue-table'\n\ninterface Person {\n  firstName: string\n  lastName: string\n  age: number\n  visits: number\n  status: string\n  progress: number\n}\n\nconst data: Person[] = [\n  {\n    firstName: 'tanner',\n    lastName: 'linsley',\n    age: 24,\n    visits: 100,\n    status: 'In Relationship',\n    progress: 50,\n  },\n  {\n    firstName: 'tandy',\n    lastName: 'miller',\n    age: 40,\n    visits: 40,\n    status: 'Single',\n    progress: 80,\n  },\n]\n\nconst columnHelper = createColumnHelper\u003cPerson\u003e()\n\nconst columns = [\n  columnHelper.group({\n    id: 'name',\n    header: 'Name',\n    columns: [columnHelper.accessor('firstName', {}), columnHelper.accessor('lastName', {})],\n  }),\n  columnHelper.group({\n    id: 'info',\n    header: 'Info',\n    columns: [\n      columnHelper.accessor('age', {}),\n      columnHelper.group({\n        id: 'moreInfo',\n        header: 'More Info',\n        columns: [\n          columnHelper.accessor('visits', {}),\n          columnHelper.accessor('status', {}),\n          columnHelper.accessor('progress', {}),\n        ],\n      }),\n    ],\n  }),\n]\n\nconst tableOptions = {\n  getSortedRowModel: getSortedRowModel(),\n  getCoreRowModel: getCoreRowModel(),\n}\n\u003c/script\u003e\n\n\u003ctemplate\u003e\n  \u003cTSTable :columns=\"columns\" :data=\"data\" :tableOptions=\"tableOptions\"\u003e\n    \u003c!-- Custom header rendering with sorting --\u003e\n    \u003ctemplate #header-firstName=\"{ column }\"\u003e\n      \u003cdiv class=\"flex items-center cursor-pointer\" @click=\"column.toggleSorting()\"\u003e\n        \u003cspan class=\"font-bold\"\u003eFirst Name\u003c/span\u003e\n        \u003cspan v-if=\"column.getIsSorted() === 'desc'\"\u003e🔽\u003c/span\u003e\n        \u003cspan v-else-if=\"column.getIsSorted() === 'asc'\"\u003e🔼\u003c/span\u003e\n        \u003cspan v-else\u003e⏺️\u003c/span\u003e\n      \u003c/div\u003e\n    \u003c/template\u003e\n\n    \u003c!-- Custom cell rendering --\u003e\n    \u003ctemplate #cell-status=\"{ value }\"\u003e\n      \u003cspan class=\"px-2 py-1 rounded text-xs font-medium\" :class=\"getStatusClass(value)\"\u003e\n        {{ value }}\n      \u003c/span\u003e\n    \u003c/template\u003e\n  \u003c/TSTable\u003e\n\u003c/template\u003e\n```\n\n### Available Slots\n\nCustomize your table with these scoped slots:\n\n- `#cell-{columnId}=\"{ value, row, cell }\"` - Custom cell rendering\n- `#header-{columnId}=\"{ column, header }\"` - Custom header rendering with sorting support\n- `#footer-{columnId}=\"{ column, footer }\"` - Custom footer rendering\n\n## 🔄 Column Definition\n\nThe library supports two ways to define columns:\n\n1. Using `columnHelper.accessor`:\n\n```typescript\n// Simple accessor\ncolumnHelper.accessor('firstName', {})\n\n// With group\ncolumnHelper.group({\n  id: 'name',\n  header: 'Name',\n  columns: [columnHelper.accessor('firstName', {}), columnHelper.accessor('lastName', {})],\n})\n```\n\n2. Using `columnHelper.display` for custom columns:\n\n```typescript\ncolumnHelper.display({\n  id: 'actions',\n  cell: () =\u003e 'Actions',\n})\n```\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## 📄 License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdacsang97%2Ftanstack-table-vue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdacsang97%2Ftanstack-table-vue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdacsang97%2Ftanstack-table-vue/lists"}