Dashboard Tables

Dashboard tables made easy with a 2 files config!

  • Component: <TableComponent/>

  • Path: /components/table/table.tsx

  • Import:

import { TableComponent } from "@/components/table/table";
Dashboard Table

Table components can be tedious to set up...

DirectoryFast attempts to solve this problem by using and simplifying the already excellent Shadcn/ui Table components, and adding its own logic for maximum reusability.

To add a new table to your dashboard (or wherever you need one), simply follow these 3 steps:

  1. Add the Table component with your data to your page:

  1. Define the columns in /data/config/[YOUR_FOLDER]/columns.tsx:

    Check TanStack-Table documentation for more informations.

  1. Create your Actions page (delete/edit...) in the same folder /data/config/[YOUR_FOLDER]/actions.tsx

Your Table is now functional!

If you want to build a more specific table, follow the comprehensive Shadcn/ui guide.

Last updated