AppTable

A robust, high-performance data table — search, sorting, pagination, row/bulk actions, inline-editable status cells, and styled Excel export. Filtering is fully decoupled: pass a filterFields schema and the table renders an AppFilterPanel, which owns all filtering logic.

Install: pnpm add-component AppTable

Basic usage

Search, sortable columns, client-side pagination, and column visibility toggling.

Decoupled filtering + export

The flagship pattern: an AppFilterPanel drives the table. The panel owns every filter type — text, select, multiselect, boolean, numberRange, dateRange — plus removable chips and Apply/Clear. Filtering commits on Apply (not per keystroke), and the toolbar's Export button downloads the filtered rows as a styled .xlsx. This is the shape a real 'team' or 'users' screen takes.

Table-managed filtering

Skip the manual wiring — pass filterFields directly to AppTable and it renders the panel and filters itself (all logic still lives in AppFilterPanel). Combined here with cross-page selection, bulk actions, row actions with confirm + overflow, an inline-editable status cell, a truncated bio column, and Excel export.

Styled Excel export

Set exportable to add a toolbar button that downloads the current (filtered + sorted) dataset as a styled .xlsx via xlsx-js-style — bold header band, zebra rows, auto-fit columns, RTL-aware. exportMappers turn coded values into human labels. Click Export to download.

Inline status editing

Click any status badge to change it in place. The 'Status' column is a boolean toggle (Yes/No confirm popover); the 'Employment' column is a multi-option select popover. Both call onChange(row, value) and update the row live — try it.

Loading state

Use the loading prop to show a beautiful skeleton state while fetching data.

Empty state

Customizable empty state when no records are found.

API