This is a shadcn table component with server-side sorting, filtering, and pagination. It is bootstrapped with create-t3-app
.
Documentation
See the documentation for more information.
Tech Stack
- Framework: Next.js
- Styling: Tailwind CSS
- UI Components: shadcn/ui
- Table package: TanStack/react-table
- Database: Neon
- ORM: Drizzle ORM
- Validation: Zod
Features
- Server-side pagination, sorting, and filtering
- Customizable columns
- Auto generated filters from column definitions
- Dynamic
Data-Table-Toolbar
with search, filters, and actions -
Notion/Airtable
like advanced filtering -
Linear
like filter menu for command palette filtering - Action bar on row selection
Running Locally
-
Clone the repository
git clone https://github.com/sadmann7/shadcn-table
-
Install dependencies using pnpm
pnpm install
-
Copy the
.env.example
to.env
and update the variables.cp .env.example .env
-
(Optional) Run database using docker-compose.yml file
docker compose up
-
Push the database schema
pnpm run db:push
-
Seed the database
pnpm run db:seed
-
Start the development server
pnpm run dev
How do I deploy this?
Follow the deployment guides for Vercel, Netlify and Docker for more information.