Zinc
Slate
Violet
Rose
Emerald
Blue
Orange
Star
ESC
Components/Data Table

Data Table

Tier 2: Light-DOM

High-performance table with sorting, search filter, and pagination

Installation

$npx nnui add data-table
copy

Interactive Preview & Code

0 of 8 selected
Invoice ⇅ Status ⇅ Client ⇅ Amount ⇅
INV-001 Paid Acme Corp $2,450.00
INV-002 Pending Global Media $850.00
INV-003 Overdue Stripe Partners $1,200.00
INV-004 Paid Vercel Inc $4,600.00
INV-005 Processing Supabase Co $3,150.00
INV-006 Paid Linear App $920.00
INV-007 Pending Raycast Ltd $1,780.00
INV-008 Paid Tailwind Labs $5,200.00
Showing 1 to 4 of 8 rows

How to Utilize

NNUI-KIT components live directly in the document Light DOM. You can use them via declarative HTML, with our first-class React wrapper, or platform-natively in Svelte, Vue, Astro, and HTMX:

React 18 & 19 (Next.js 15 App Router)
import 'nnui-kit/css';
import 'nnui-kit/client';
import { DataTable } from 'nnui-kit/react';
Universal Web Components (Vue 3, Svelte 5, Astro, HTMX)
<!-- Automatically registers <ui-data-table> and <nnui-data-table> -->
import 'nnui-kit/css';
import 'nnui-kit/client';

Platform Features

Zero Shadow DOM
Element lives in the Light DOM. Tailwind and global CSS apply directly.
persist="url | local"
Add declarative persistence attribute to auto-sync state with URL search params.
sync="cross-tab"
Synchronize changes across all open browser tabs via BroadcastChannel.