Data Table Pro
Full-featured data table with sorting, filtering, pagination, column resizing, and CSV export. Built on TanStack Table with a clean, customizable UI.
ReactUI ComponentsBuilt with Cursor
1.9k
Stars
9.8k
Installs
1
Deps
2
Comments
Install / Copy
npx create-freestack-module data-table-proCode Preview
index.tsx
import { useReactTable, getCoreRowModel, getSortedRowModel } from "@tanstack/react-table";
export function DataTable({ data, columns }) {
const [sorting, setSorting] = useState([]);
const [globalFilter, setGlobalFilter] = useState("");
const table = useReactTable({
data,
columns,
state: { sorting, globalFilter },
onSortingChange: setSorting,
getCoreRowModel: getCoreRowModel(),
getSortedRowModel: getSortedRowModel(),
});
return (
<div className="rounded-lg border">
<input
value={globalFilter}
onChange={(e) => setGlobalFilter(e.target.value)}
placeholder="Search all columns..."
className="w-full border-b px-4 py-2"
/>
<table className="w-full">
{/* header and body rows */}
</table>
</div>
);
}DA
datanerd5 days ago
The CSV export feature saved us a ton of time. Clean implementation.
FU
fullstackjane2 weeks ago
How does this handle 10k+ rows? Any virtualization built in?
TA
tablemaster2 weeks ago
We use windowing for large datasets. Check the virtualizedRows prop in the docs.
Related Modules
Kanban Board
Drag-and-drop Kanban board with real-time sync via WebSockets. Supports multiple boards, swimlanes, card assignments, and priority labels out of the box.
2.3kReact
File Uploader
Drag-and-drop file upload component with progress bars, file type validation, and direct S3/R2 integration. Supports multi-file uploads and image previews.
1.4kReact
Rich Text Editor
Notion-style block editor with slash commands, drag-to-reorder, markdown shortcuts, and collaborative editing support. Built on Tiptap with custom extensions.
4.1kReact