Data Table Toolbar

GitHub

Global search, column filters, reset control, and custom content area for data tables.

Installation

bash
pnpm dlx shadcn@latest add @cs/data-table-toolbar

Usage

tsx
import { DataTableToolbar } from "@/components/cs/data-table-toolbar"
tsx
<DataTableToolbar table={table} disabled={false} />

API Reference

DataTableToolbar

Renders global search, configured column filters, and reset controls for a data table.

Props

NameTypeDefaultDescription
childrenReactNode-Content rendered at the end of the toolbar.
disabled *boolean-Disables the search, filters, and reset control.
filtersDataTableToolbarFilter<TData>[]-Column filters displayed after the global search input.
table *FilterableTable-Data-table interface providing filter state and update methods.
translationsRootKeystring"table"Namespace containing minTwo, search, resetFilters, columns.<column>, and the filter messages described by DataTableFilterProps.