← Back to list

nuxt-tables
by leeovery
⭐ 1🍴 0📅 Jan 20, 2026
SKILL.md
name: nuxt-tables description: Table components with column builder pattern and XTable. Use when creating data tables, defining columns with custom cells, implementing row actions, or building reusable table configurations.
Nuxt Tables
Data tables with column builder pattern and XTable component.
Core Concepts
tables.md - Column builder, XTable, row actions
Column Builder Pattern
// app/tables/posts.ts
import { h } from 'vue'
import type { TableColumn } from '@tanstack/vue-table'
const statusColumn: TableColumn<Post> = {
id: 'status',
accessorKey: 'status',
header: 'Status',
cell: ({ row }) => h(UBadge, {
color: row.getValue('status').color()
}, () => row.getValue('status').text),
}
export const postsColumnBuilder = createColumnBuilder<Post>({
ulid: ulidColumn,
author: authorColumn,
status: statusColumn,
dates: datesColumn,
})
// Usage
const columns = postsColumnBuilder.all()
const columns = postsColumnBuilder.build(['ulid', 'status'])
const columns = postsColumnBuilder.except(['dates'])
XTable Usage
<XTable
:data="posts"
:columns="columns"
:loading="isLoading"
:fetching="isFetching"
:row-actions="rowActions"
row-id="ulid"
@row-click="handleRowClick"
/>
Row Actions
const rowActions = computed(() => (row: Row<Post>) => [
{ label: 'View', to: `/posts/${row.original.ulid}` },
{ label: 'Edit', onSelect: () => openEdit(row.original) },
{ label: 'Delete', onSelect: () => handleDelete(row.original) },
])
Score
Total Score
60/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon