Filter Table

Status chips that reorganize live data.

Installation

pnpm dlx shadcn@latest add @ward/filter-table

Add the Ward registry to components.json once:

"registries": {
  "@ward": "https://ward.so/r/{name}.json"
}

Or install from the URL with no configuration: npx shadcn@latest add https://ward.so/r/filter-table.json

Usage

import FilterTable from "@/components/ward/FilterTable";
<FilterTable
  labels={{ columns: { task: "Task", date: "Due", status: "Status", owner: "Owner" } }}
  rows={[
    { task: "Restock mango sorbet", date: "Dec 03", status: "todo", owner: "Mango Moon Brand" },
    { task: "Order design assets", date: "Apr 14", status: "done", owner: "Aurora Works" },
  ]}
/>

Props

PropTypeDefaultDescription
variantstring"Default"Accepted for registry parity; the component has a single variant.
rowsTableRow[]ROWSTask rows shown in the table, each with a task name, date, status and owner.
labelsFilterTableLabelsLABELSColumn header text for the task, date, status and owner columns.

Ward · Version 1.1.0 · Registry manifest