data-tables
/data-tables
Pomaga budować interfejsy tabelaryczne i gęste w dane: sortowanie, filtrowanie, paginacja, zaznaczanie, karty KPI, wykresy i panele analityczne, z TanStack Table lub Query.
- Autor
- krishna-modi12 ↗
- Repozytorium
- frontend-design-pro ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 20.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 12
- Skrypty
- 8
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 20.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- 8 skryptów w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: examples/_r3f-jsx.d.ts, examples/_stubs.d.ts, examples/good-dashboard.test.tsx, examples/good-dashboard.tsx, examples/good-data-table.test.tsx, examples/good-data-table.tsx, examples/good-tanstack.test.tsx, examples/good-tanstack.tsx
Co robi i kiedy
Pomaga budować interfejsy tabelaryczne i gęste w dane: sortowanie, filtrowanie, paginacja, zaznaczanie, karty KPI, wykresy i panele analityczne, z TanStack Table lub Query.
Oryginalny opis (EN)
Tables, grids, charts and dashboards — sorting, filtering, pagination, selection, KPIs, data fetching. Use when the UI is tabular or data-dense — data tables, lists, grids, pagination, sorting, filtering, row selection, KPI cards, charts, analytics dashboards, admin panels. TanStack Table or Query route here.
Jak działa
- When to Use
- Stack
- Core Rules
- Patterns
- Examples
- Reference Index
- Constraints
Podgląd SKILL.md
---
name: data-tables
description: Tables, grids, charts and dashboards — sorting, filtering, pagination, selection, KPIs, data fetching. Use when the UI is tabular or data-dense — data tables, lists, grids, pagination, sorting, filtering, row selection, KPI cards, charts, analytics dashboards, admin panels. TanStack Table or Query route here.
metadata:
version: "15.0.0"
core-deps:
- core/component-api.md
- core/accessibility-baseline.md
---
# Data Tables & Dashboards
## When to Use
Tabular or data-dense UI: data tables, lists, grids, pagination, sorting, filtering, row selection, KPI cards, charts, analytics dashboards, admin panels. Mentions of TanStack Table/Query route here.
## Stack
React 19 · TypeScript strict · Tailwind v4 · TanStack Table/Query · Recharts (default)
## Core Rules
1. **Semantic `<table>` for tabular data.** Never div-grids. Sortable headers use `<th aria-sort>` wrapping a `<button>`; the sort cycle is asc → desc → none.
2. **Selection.** Leading checkbox column, header checkbox carries the `indeterminate` state, bulk-action bar sits above the table and announces its count via `aria-live="polite"`.
3. **Overflow is keyboard-reachable.** Wrap in `overflow-x-auto` with `tabIndex={0}`, `role="region"` and an `aria-label`.
4. **Default to pagination.** Infinite scroll only for feeds where SEO is irrelevant, and always with a "Load more" button for keyboard users. Past ~100 rendered rows, virtualize.
5. **State lives in the URL.** Filters, sort, page and expanded panels go in query params so views are shareable and restorable.
6. **Numbers are `tabular-nums`** and formatted with `Intl.NumberFormat`; dates with `Intl.DateTimeFormat`. Never hardcode formats.
7. **Charts need a text equivalent.** `role="img"` plus an `aria-label` stating the trend; a summary line beside the chart serves both sighted scanners and screen readers.
8. **Four states per data surface.** Skeleton matching the final layout (no CLS), empty with a route out, error with `role="alert"` and retry, success.
9. **Never colour alone** for status — pair with icon or text.
## Patterns
- **TABLE-ROW** = search/filter bar + table + pagination.
- **METRIC-ROW** = 4 KPI cards (value, label, trend with direction icon, optional sparkline).
- **CHART-ROW** = large chart (2/3) + summary panel (1/3), or two medium charts.
- **Optimistic mutation** — update the cache, roll back on error (see tanstack-query).
- **DASH-LAYOUT** = sidebar 240px + header 56px + flexible content.
## Examples
`examples/good-data-table.tsx` (sort, select, paginate, all states) · `examples/good-tanstack.tsx` (useQuery/useMutation/useInfiniteQuery, optimistic) · `examples/good-dashboard.tsx` (KPI + charts).
## Reference Index
Load only for the specific task:
| Task | Load |
|---|---|
| Table/KPI/chart/feed pattern anatomy (P-09…P-12), pagination-vs-infinite matrix | `../landing-pages/references/design-patterns.md` |
| 25 chart types with accessibility ratings | `references/chart-types.md` |
| Queries, mutations, infinite scroll, SSR prefetch | `references/tanstack-query.md` |
| URL state (nuqs), localStorage, cross-tab sync | `references/memory-persistence.md` |
## Constraints
Semantic table markup with `aria-sort` · keyboard-reachable overflow · `tabular-nums` and `Intl.*` formatting · four states with skeletons that don't shift layout · OKLCH tokens · TypeScript strict · WCAG 2.2 AA · no mount-time fake delays.
Pliki w paczce (12)
- SKILL.md 3 KB
- examples/_r3f-jsx.d.ts 2 KB
- examples/_stubs.d.ts 4 KB
- examples/good-dashboard.test.tsx 1 KB
- examples/good-dashboard.tsx 10 KB
- examples/good-data-table.test.tsx 3 KB
- examples/good-data-table.tsx 28 KB
- examples/good-tanstack.test.tsx 1 KB
- examples/good-tanstack.tsx 32 KB
- references/chart-types.md 15 KB
- references/memory-persistence.md 21 KB
- references/tanstack-query.md 28 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · krishna-modi12/frontend-design-pro | 100 | MIT |
| oborchers/fractional-cto | 100 | MIT |
| neurawork-git/n8n-autopilot | 100 | MIT |
Migawka bazy z 28.10.2026 · wersja paczki 5a31d2d298b1 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 90accessible-data-tables-and-grids
Przegląda natywne tabele danych i interaktywne siatki pod kątem dostępności: sortowanie, edycja, zaznaczanie, paginacja i wirtualizowane wiersze. - 100tanstack-table
Stosuje wzorce TanStack Table dla tabel danych w Svelte: kolumny, renderowanie, sortowanie, filtrowanie, paginacja i tożsamość wierszy w interfejsie użytkownika. - 95tanstack-table
Buduje bezgłowe tabele danych TanStack Table v8 z funkcjami po stronie serwera dla Cloudflare Workers i D1: paginacja, filtrowanie, sortowanie, wirtualizacja i synchronizacja z URL. - 100tanstack-table
Pomaga budować tabele danych w TanStack Table (React, Vue, Svelte, Solid, Angular, Lit): sortowanie, filtrowanie, paginacja, zaznaczanie wierszy oraz migracja z useReactTable v8. - 85ux-tables
Projektuje lub krytykuje tabele danych i listy: czytelna struktura, zasady wyrównania (tekst w lewo, liczby w prawo), sortowanie i filtrowanie, interakcje z wierszami i właściwy typ listy. - 100data-display-and-selection
Pomaga projektować tabele i listy danych: tryby widoku, zaznaczanie wierszy, akcje masowe, sortowanie, filtry i wyszukiwanie.