
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
nextjs-reusable-table
Advanced tools
A production-ready, highly customizable and reusable table component for Next.js applications. Features include sorting, pagination, search, dark mode, TypeScript support, and zero dependencies.
A production-ready, highly customizable and reusable table component for Next.js applications. Built with TypeScript, optimized for performance, and designed with developer experience in mind.
| File | Description |
|---|---|
| API.md | Complete prop reference, types, and utility functions |
| EXAMPLES.md | Real-world usage patterns and recipes |
| TROUBLESHOOTING.md | Common issues, fixes, and FAQ |
| CONTRIBUTING.md | How to contribute |
| CHANGELOG.md | Version history |
| SECURITY.md | Supported versions and vulnerability reporting |
| File | Description |
|---|---|
| llms.txt | AI-discovery index (llms.txt standard) |
| llms-full.txt | Complete inlined reference for AI context windows |
| skills/nextjs-reusable-table/SKILL.md | Installable skill for Cursor, Claude Code, and agentskills-compatible editors |
| AGENTS.md | AI agent contribution guide |
| .cursor/rules/ | Cursor IDE rules (auto-attached per file type) |
disableDefaultStyles + customClassNames@layer rtbl with rtbl- prefix, zero global style leakingnpm install nextjs-reusable-table
# or
yarn add nextjs-reusable-table
# or
pnpm add nextjs-reusable-table
| Requirement | Version |
|---|---|
| Next.js | 13+ (App Router and Pages Router supported) |
| React | 18+ |
| React DOM | 18+ |
| Tailwind CSS | 3+ or 4+ |
| TypeScript | 4.5+ (recommended) |
Note: All components use the
"use client"directive. For SSR contexts, wrap in a client component or usedynamic(() => import(...), { ssr: false }).
"use client";
import { TableComponent } from "nextjs-reusable-table";
import "nextjs-reusable-table/dist/index.css";
interface User {
id: number;
name: string;
email: string;
}
const users: User[] = [
{ id: 1, name: "Alice Johnson", email: "alice@example.com" },
{ id: 2, name: "Bob Smith", email: "bob@example.com" },
];
export default function UsersTable() {
return (
<TableComponent<User>
columns={["ID", "Name", "Email"]}
data={users}
props={["id", "name", "email"]}
/>
);
}
"use client";
import { useState } from "react";
import { TableComponent } from "nextjs-reusable-table";
import "nextjs-reusable-table/dist/index.css";
export default function SearchableTable() {
const [search, setSearch] = useState("");
const [page, setPage] = useState(1);
return (
<div className="space-y-4">
<input
type="text"
placeholder="Search..."
value={search}
onChange={(e) => setSearch(e.target.value)}
className="w-full p-2 border rounded-md"
/>
<TableComponent<User>
columns={["ID", "Name", "Email"]}
data={users}
props={["id", "name", "email"]}
searchValue={search}
enablePagination
page={page}
setPage={setPage}
itemsPerPage={10}
/>
</div>
);
}
Tailwind v3 — add to content in tailwind.config.js:
content: [
"./src/**/*.{js,ts,jsx,tsx}",
"./node_modules/nextjs-reusable-table/dist/**/*.{js,mjs}",
]
Tailwind v4 — add to your CSS:
@import "tailwindcss";
@source "../node_modules/nextjs-reusable-table/dist";
Intl.DateTimeFormat<Link> elementssortableProps and providing an onSort handlershowRemoveColumns={true})<TableComponent
actions
actionTexts={["Edit", "Delete"]}
actionFunctions={[
(item) => handleEdit(item),
(item) => handleDelete(item),
]}
/>
<TableComponent<User>
formatValue={(value, prop, item) => {
if (prop === "status")
return <span className={item.active ? "text-green-600" : "text-red-500"}>{value}</span>;
return value;
}}
/>
<TableComponent
disableDefaultStyles
customClassNames={{
container: "border rounded-xl overflow-hidden",
table: "w-full text-sm",
thead: "bg-slate-100",
th: "px-4 py-3 font-semibold text-left",
tr: "border-b hover:bg-slate-50",
td: "px-4 py-3",
}}
/>
For all prop options, see API.md. For more examples, see EXAMPLES.md.
Contributions are welcome! See CONTRIBUTING.md for details.
ISC — see LICENSE.
Inspired by common data table patterns in React and Next.js applications. Thanks to all contributors and users for their support.
FAQs
A production-ready, highly customizable and reusable table component for Next.js applications. Features include sorting, pagination, search, dark mode, TypeScript support, and zero dependencies.
The npm package nextjs-reusable-table receives a total of 54 weekly downloads. As such, nextjs-reusable-table popularity was classified as not popular.
We found that nextjs-reusable-table demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.