SSR Filter Table
shadcn-table-library/server-filter-tableFreeBlock
Column filtering resolved on the server the same way SSR pagination resolves pages, with manualFiltering and a URL-driven filter state.
Install it
npx shadcn@latest add https://shad-table.dev/r/server-filter-table.jsonSource
1'use client'23import type { ColumnDef } from '@tanstack/react-table'45// This type is used to define the shape of our data.6// You can use a Zod schema here if you want.7export type User = {8 id: number9 name: string10 email: string11 role: string12 status: string13}1415export const columns: ColumnDef<User>[] = [16 {17 accessorKey: 'name',18 header: 'Name',19 enableSorting: false,20 },21 {22 accessorKey: 'email',23 header: 'Email',24 sortingFn: 'alphanumeric',25 },26 {27 accessorKey: 'role',28 header: 'Role',29 sortingFn: 'basic',30 filterFn: 'equalsString',31 },32 {33 accessorKey: 'status',34 header: 'Status',35 sortingFn: 'basic',36 filterFn: 'equalsString',37 },38]
What it pulls in
npm packages
Other registry items
Files it writes
More from shadcn-table-library
All 18 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Animated Icons Tableanimated-icons-table | shadcn-table-library | Blocks | Free | 2 deps · 9 files | |
| Comparison Tablecomparison-table | shadcn-table-library | Blocks | Free | 1 dep · 4 files | |
| Data Tabledata-table | shadcn-table-library | Blocks | Free | 1 dep · 4 files | |
| Density & Exportdensity-export-table | shadcn-table-library | Blocks | Free | 1 dep · 4 files | |
| Editable Tableeditable-table | shadcn-table-library | Blocks | Free | 1 dep · 3 files | |
| Grouped Tablegrouped-table | shadcn-table-library | Blocks | Free | 1 dep · 3 files | |
| Heatmap Tableheatmap-table | shadcn-table-library | Blocks | Free | 1 dep · 4 files | |
| Summary / KPI Tablekpi-table | shadcn-table-library | Blocks | Free | 1 dep · 5 files |
