getting-started
यह क्या करती है
यह स्किल दिखाती है कि Alpine.js से बने वेब पेज में TanStack Table लाइब्रेरी का उपयोग करके डेटा की टेबल कैसे बनाएँ और दिखाएँ। यह उन वेब डेवलपरों के लिए है जो एक हेडलेस टेबल चाहते हैं जिसे वे खुद स्टाइल करें।
कब इस्तेमाल करें
- ✓जब आप ऐसा Alpine.js पेज बना रहे हों जिसमें रिकॉर्ड की संरचित टेबल चाहिए।
- ✓जब आपका टेबल डेटा समय के साथ बदलता है और टेबल को स्क्रीन पर अपडेट होना चाहिए।
- ✓जब आप FlexRender सहायक से हेडर और सेल दिखाना चाहें।
Skill का लिंक
https://github.com/TanStack/table/blob/main/packages/alpine-table/skills/getting-started/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मैं Alpine.js पेज बना रहा हूँ जिसमें एक टेबल में ग्राहकों की सूची है। TanStack Table से इसे कैसे सेट करूँ?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह कॉलम परिभाषाओं और डेटा से टेबल बनाने के कोड पैटर्न देती है, फिर दिखाती है कि Alpine के template लूप से पेज में हेडर और पंक्तियाँ कैसे दिखाएँ।
तकनीकी सामग्री (मूल 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-featuresand 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 के reactive store में रखें और एक 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
- अपडेट की गई
- 21/10/2026
कमेंट
- …
इस repository की और skills
table-state
29kयह आपके एजेंट को Alpine.js में टेबल की स्थिति, जैसे मौजूदा पेज, पढ़ना और नियंत्रित करना सिखाती है, ताकि वह स्थिति बदलने पर स्क्रीन अपडेट हो।
devtools
29kयह आपके एजेंट को Angular टेबल को TanStack Devtools पैनल में रजिस्टर करना सिखाती है, ताकि डेवलपर ऐप बनाते समय हर टेबल की जांच कर सकें।
getting-started
29kयह आपके एजेंट को Angular में TanStack टेबल बनाना और दिखाना सिखाती है, जिसमें injectTable सेटअप, टेम्प्लेट रेंडरिंग और पंक्ति डेटा के अपडेट शामिल हैं।
migrate-v8-to-v9
29kयह आपके एजेंट को Angular टेबल को TanStack Table v8 से v9 पर ले जाने में मदद करती है, सेटअप, रेंडरिंग, स्थिति और hooks को माइग्रेशन जांच सूची से मिलाकर।
मिलती-जुलती skills
angular-developer
280kआपके एजेंट को Angular code बनाने और प्रोजेक्ट स्ट्रक्चर पर सलाह देने में मदद करता है। नए प्रोजेक्ट शुरू करने, code के हिस्से बनाने, या performance और accessibility सुधारने में उपयोगी है।
frontend-a11y
280kआपके एजेंट को web interfaces को सबके लिए accessible बनाने में मदद करता है। यह सुनिश्चित करता है कि websites और apps screen readers और keyboard navigation के साथ अच्छे से काम करें।
frontend-patterns
280kआपके एजेंट को React और Next.js में frontend development के modern patterns लागू करने में मदद करता है। यह performance optimize करता है, state manage करता है और best practices फॉलो करवाता है।