KodeKarsa UI

Compact

Compact Data Table

A dense table with sortable columns, search and filters in the top bar, row selection with bulk actions, and the count, rows per page, and page numbers at the bottom.

src/components/ui/compact-data-table.tsxNo ui-sdk

Invoices with search and selection

Memuat

Import

tsx
import {
  CompactDataTable,
  type CompactColumn,
} from "@/components/ui/compact-data-table";

Guidelines

  • Filter the data before passing it to rows; the table handles sorting and paging itself.
  • Columns without sort can't be sorted. Click a header once for ascending, twice for descending, a third time to reset.