본문으로 건너뛰기
Skillpedia
웹사이트 및 UI (프런트엔드)29k · #9805

getting-started

하는 일

이 스킬은 TanStack Table 라이브러리를 사용해 Alpine.js로 만든 웹 페이지에 데이터 표를 만들고 보여 주는 방법을 설명합니다. 직접 스타일을 입히는 헤드리스 표를 원하는 웹 개발자를 위한 스킬입니다.

사용하는 경우

  • ✓Alpine.js 페이지에 구조화된 레코드 표가 필요할 때.
  • ✓표 데이터가 시간이 지나며 바뀌고 화면의 표도 함께 업데이트되어야 할 때.
  • ✓FlexRender 도우미로 표 헤더와 셀을 렌더링하고 싶은 경우.

스킬 링크

https://github.com/TanStack/table/blob/main/packages/alpine-table/skills/getting-started/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/TanStack/table/blob/main/packages/alpine-table/skills/getting-started/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“Alpine.js 페이지에 고객 목록을 표로 보여 주려고 합니다. TanStack Table로 어떻게 설정하나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

열 정의와 데이터로 표를 만드는 코드 패턴을 제공하고, 그다음 Alpine 템플릿 반복문으로 페이지에 헤더와 행을 렌더링하는 방법을 보여 줍니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Load intent load @tanstack/table-core#core first for the headless model, stable inputs, and column inference.

Setup

import Alpine from 'alpinejs'
import {
  FlexRender,
  createTable,
  tableFeatures,
  type ColumnDef,
} from '@tanstack/alpine-table'

type Person = { id: string; name: string }
const features = tableFeatures({})
const columns: Array<ColumnDef<typeof features, Person>> = [
  { accessorKey: 'name', header: 'Name' },
]

Alpine.data('peopleTable', () => {
  const local = Alpine.reactive({
    data: [{ id: '1', name: 'Ada' }] as Array<Person>,
  })
  const table = createTable({
    features,
    columns,
    get data() {
      return local.data
    },
    getRowId: (row) => row.id,
  })

  return { table, FlexRender }
})

window.Alpine = Alpine
Alpine.start()

Render real table structure with x-for; use x-html="FlexRender({ header })" or x-html="FlexRender({ cell })" only for renderer output.

Construction and rendering

Wrap changing data in Alpine.reactive and expose it with get data(). The adapter tracks option getters; data: local.data captures a snapshot and does not follow later array replacements. Keep static columns and features outside getters.

The returned table is a reactive proxy. Read Table APIs directly in x-text, x-for, x-if, or bound attributes; no Subscribe component is needed.

Build table structure and interactive controls as real Alpine markup. Use x-html="FlexRender({ header })" or x-html="FlexRender({ cell })" for renderer output. Alpine does not initialize directives inside x-html strings; use templates or Alpine.bind bundles for buttons and inputs.

Read for the task

  • When adding or configuring optional features, load intent load @tanstack/table-core#table-features and read only references for the requested behavior.
  • For state ownership or reactive reads, read table-state.
  • When tables share features, defaults, or reusable UI, read create-table-hook.

API discovery

Inspect node_modules/@tanstack/alpine-table/dist/index.d.ts, createTable.d.ts, and reactivity.d.ts. Core feature APIs are in node_modules/@tanstack/table-core/dist/features/.

자주 묻는 질문

TanStack Table을 이미 알아야 하나요?

깊이 알 필요는 없습니다. 이 스킬은 배경 설명을 위해 핵심 가이드를 가리킨 뒤 Alpine 전용 설정을 다룹니다.

변하는 데이터와 표를 어떻게 동기화하나요?

데이터를 Alpine의 반응형 저장소에 넣고 getter를 통해 노출하는 것을 권합니다.

Alpine.js에서만 쓸 수 있나요?

네, Table v9의 Alpine 버전을 다루며, 다른 프레임워크는 자체 가이드가 있습니다.

상세 정보

작성자의 원본 설명

Create and render Table v9 with the alpine adapter. Route reusable createTableHook defaults, and framework setup; use table-state for reactive ownership.

repo: TanStack/table

인기도

GitHub 스타
29k
순위
#9805
라이선스
MIT
업데이트
2026. 10. 21.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬