073
A dense endpoint table where every row carries its own 24-hour sparkline, a delta that knows lower is better, and a status; sort any column and the rows glide into order.
akatable·sparkline·latency
Run this in any project set up for the shadcn CLI. It copies the Sparkline Table source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/sparkline-table.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { SparklineTable } from "@/components/sparkline-table";
export default function Page() {
return <SparklineTable />;
}A free React component in the Numbers collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Sparkline Table source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| title | string | "Endpoints" |
| caption | string | "p95 latency, last 24 hours" |
| rows | SparklineRow[] | defaultRows |
| unit | string | "ms" |
| lowerIsBetter | boolean | true |
| pointLabels | string[] | defaultLabels |
| defaultSort | { key: SortKey; dir: "asc" | "desc" } | { key: "status", dir: "desc" } |
| locale | string | "en-US" |
| className | string | — |