Ballmac UI home

Dashboard 2: traffic analytics

A web analytics page: a live-now pill, date range and compare switch, a visitors line chart against the previous period, traffic sources as a donut, devices, top countries and a top-pages table.

Open in v0 (opens in a new tab)

Installation

$ pnpm dlx shadcn@latest add @ballmac/dashboard-2

Usage

Example: dashboard-2-demo.tsx
import { Dashboard2 } from "@/components/ballmac/blocks/dashboard-2/dashboard-2"

export default function Dashboard2Demo() {
  return <Dashboard2 />
}

Dependencies

Use with AI

A traffic dashboard. Pass getSeries(range) returning { label, visitors, previous }[], plus sources, devices, pages, countries and live (null hides the pill). With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Dashboard 2: traffic analytics (@ballmac/dashboard-2) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Site and product analytics
  • Marketing performance pages

Not for

  • Sales and revenue (use dashboard-1)

Registry JSON: https://ui.ballmac.com/r/dashboard-2.json

Free to use in personal and commercial projects.