Skip to content

Data Grid

A realistic e‑commerce inventory admin screen with three swappable grid implementations: AgnosticUI Table, Grid.js, and TanStack Table — across React, Vue, and Lit.

Try it Live

Open any framework example directly in StackBlitz:

Open React in StackBlitzOpen Vue in StackBlitzOpen Lit in StackBlitz
Mobile layout

Mobile

Mobile dark mode layout

Mobile - Dark

Tablet layout

Tablet

Tablet dark mode layout

Tablet - Dark

Desktop layout

Desktop

Desktop dark mode layout

Desktop - Dark

Skins & Customization

Screenshots show the default skin. Each live example includes a skin switcher (bottom-right corner) to preview other themes instantly. Colors, spacing, and typography are fully customizable via design tokens.

What's Included

Experimental Feature: AI-Assisted UI Generation

Generating UI components via LLM prompting is non-deterministic; different models (and even different versions of the same model) can produce drastically varying results from identical prompts.

While these prompts have been tested using the Claude Code CLI (running Claude Sonnet 4.5 and Opus 4.5), the output remains experimental. Always verify generated code for visual consistency, accessibility, and production readiness before deployment.

  • Three framework examples: React, Vue, and Lit implementations
  • Simple Panel: AgnosticUI Table with search, column sort, status Tags, edit Toast, EmptyState, and Pagination
  • Grid.js Panel: Drop-in grid with built-in search, sort, and pagination — bridged to --ag-* tokens via targeted CSS overrides
  • TanStack Panel: Headless table with global search, column filters, multi-sort, column visibility Menu, row selection, bulk delete Dialog, page-size Select, and Pagination
  • PROMPT-3-FRAMEWORKS.md: Feed directly to your LLM for AI‑assisted customization

Using with an LLM

The PROMPT-3-FRAMEWORKS.md file contains everything an AI assistant needs to understand and modify the grid:

  1. Copy the PROMPT-3-FRAMEWORKS.md contents
  2. Paste into Claude, ChatGPT, or your preferred LLM
  3. Ask for customizations: "Add a bulk export button that downloads selected rows as CSV"

Components Used

ComponentPurpose
ag-alertIntegration note above the Grid.js panel
ag-avatarUser profile icon in the header
ag-breadcrumbHome / Inventory navigation trail
ag-buttonActions, delete, and toolbar triggers
ag-checkboxRow selection in TanStack panel
ag-dialogBulk delete confirmation
ag-empty-stateZero-results placeholder across all panels
ag-headerTop navigation bar with theme toggle and avatar
ag-icon-buttonPer-row edit action
ag-inputSearch and column filter inputs
ag-menuColumn visibility toggle in TanStack panel
ag-paginationPage navigation below each panel
ag-selectCategory filter and page-size selector
ag-selection-buttonIndividual "View as:" toggle option
ag-selection-button-group"View as:" panel switcher (Simple / Grid.js / TanStack)
ag-tableTable markup for Simple and TanStack panels
ag-tagStatus labels (active / low-stock / discontinued)
ag-toastEdit and delete confirmation notifications

Responsive Behavior

BreakpointLayout
Mobile (<768px)Card layout — each row becomes a labeled card
Tablet (768–1199px)Table layout — Category column hidden to save space
Desktop (≥1200px)Full table with all columns visible