API99.96% uptime
60 days agoToday
Installation
$ pnpm dlx shadcn@latest add @synccn/trackerFirst time in this project? Connect synccn with one command.
Usage
import { Tracker } from "@/components/ui/data-viz";<Tracker data={days} />API reference
Generated from the component's TypeScript types, so it always matches the code.
Tracker
Status history as a row of bars (uptime, deploys, check-ins). Hover for details. data: [{ status: "ok" | "warn" | "down" | "none", tooltip }]
PropTypeDescription
- datarequired
{ status: "ok" | "warn" | "down" | "none"; tooltip: string }[]One bar per period, oldest first.
- className
stringExtra classes for the root element.
Dependencies
Read from the component's imports when the site builds. The CLI installs all of these for you.
Helpers
- lib/utilscn (merges class names)
npm packages
- clsx for cn()
- tailwind-merge for cn()
Accessibility
From the source
Read from this component's code when the site builds, so it can't drift.
- ARIA attributes: aria-label
More data
Data TableSorting, search, column visibility, selection and paging.Bar ChartResponsive SVG bars with tooltips and an entrance.Area ChartSmooth area with a crosshair tooltip.SparklineTiny trend line coloured by direction.HeatmapContribution-style calendar of daily counts.KanbanDrag cards between columns.