OOratiq

Data Table

Ready

Sorting, filtering, pagination, selection.

Requires @tanstack/react-table

Incline Dumbbell PressChest3
Barbell RowBack4
Back SquatQuads5
Overhead PressShoulders4

Page 1 of 2

Installation

$ npx @oratiq-js/ui add data-table

Copies the component and everything it depends on into your project, then lists the npm packages to install. The code is yours after this.

Usage

import
import { DataTable } from "@/components/ui/data-table";

Sorting, filtering, columns, pagination

Click a header to sort. Type to filter. Toggle columns from the menu.

Incline Dumbbell PressChest3810
Barbell Bench PressChest41,600
Cable FlyChest3540
Pull UpBack4720
Barbell RowBack41,280

Page 1 of 3

Sort indicators are vertical arrows, so they are not mirrored under RTL. The pagination controls are — the same per-glyph rule as everywhere else in the system.

Props

PropTypeDefaultDescription
columns*ColumnDef<TData, TValue>[]TanStack Table column definitions.
data*TData[]Row data.
filterColumnstringColumn id the search box filters.
pageSizenumber10Rows per page.

View source on GitHub → components/ui/data-table.tsx