A web-analytics console: sidebar + search topbar, a live realtime strip, an hourly sessions area chart, a daily-goal radial gauge, a channel-audience radar chart, a new-vs-returning line chart, and a sortable top-pages table.
A full-height web analytics dashboard: a collapsible sidebar and search topbar over a live realtime strip, an hourly sessions area chart, a daily-goal radial gauge, a channel-audience radar chart, a new-vs-returning line chart, and a sortable top-pages table. It is a drop-in traffic dashboard template for a Next.js / React analytics dashboard, built on shadcn/ui + Recharts and the Beste UI chart components.
Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.
Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.
Radix flavor
npx shadcn add "https://ui.beste.co/r/dashboard7?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://ui.beste.co/r-base/dashboard7?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/dashboard7.tsx, the Beste chart and layout components it composes (area-chart, line-chart, radar-chart, radial-chart, data-table, sidebar-nav, user-menu, notifications-menu) to components/beste/component/, and the shadcn/ui dependencies they need (button, badge, sheet, command, dialog).
The installed file exports dashboard7Demo alongside the block: the exact props behind the preview above. Spread it to get the full dashboard in one line. It fills its container, so give it a full-height wrapper (the component itself is h-screen).
import { Dashboard7, dashboard7Demo } from "@/components/beste/block/dashboard7";
export default function Page() {
return <Dashboard7 {...dashboard7Demo} />;
}Every prop is optional. Omit any and the block falls back to its built-in demo data, so <Dashboard7 /> renders a complete, populated analytics dashboard out of the box. Pass just the props you want to override.
| Prop | Type | Default | Description |
|---|---|---|---|
brandName | string | "Pulsar" | Brand label next to the Gauge icon in the sidebar |
heading | string | "Traffic intelligence" | Page heading; a "Live" pill renders beside it |
description | string | "Realtime and last-24-hour visitor activity." | Muted line under the heading |
user | DashboardUser | demo user | Identity shown in the topbar account menu |
navGroups | SidebarNavGroup[] | demo groups | Sidebar navigation, rendered in order as labeled groups |
commandGroups | CommandPaletteGroup[] | demo groups | Grouped entries in the ⌘K command palette |
userItems | UserMenuItem[] | demo items | Rows in the account dropdown menu |
notifications | NotificationItem[] | demo items | Entries in the notifications popover |
realtime | RealtimeStat[] | demo stats | The three realtime strip cards |
sessionsData | SessionPoint[] | demo series | Hourly Sessions today area chart |
audienceData | AudiencePoint[] | demo series | Channels by audience radar chart |
visitorData | VisitorPoint[] | demo series | New vs. returning line chart |
pages | Page[] | demo rows | Rows of the Top pages table |
goalValue | number | 73 | Percent shown by the Daily goal radial gauge |
goalCaption | string | "Newsletter signups" | Muted caption under the daily-goal gauge |
The block-local data types:
type RealtimeStat = {
label: string;
value: string; // pre-formatted, e.g. "1,204"
accent?: boolean; // pulsing dot next to the value
};
type SessionPoint = { hour: string; sessions: number; users: number };
type AudiencePoint = { channel: string; organic: number; social: number };
type VisitorPoint = { day: string; returning: number; new: number };
type Page = {
id: string;
path: string;
views: number;
avgTime: string;
bounce: number; // percent; > 40 renders a red badge, else emerald
};
type DashboardUser = {
name: string;
email: string;
avatar: string; // image URL, rendered with a plain <img>
};The remaining props reuse the interfaces exported by the composed Beste components:
// from sidebar-nav
type SidebarNavGroup = {
label?: string; // muted uppercase group heading (hidden when collapsed)
items: {
id: string;
label: string;
icon?: LucideIcon;
badge?: string | number; // small trailing count/tag, e.g. "live"
href?: string; // renders an <a> instead of a <button>
}[];
};
// from user-menu
type UserMenuItem = {
id: string;
label: string;
icon?: LucideIcon;
destructive?: boolean; // red row with a separator above it
};
// from notifications-menu
type NotificationItem = {
id: string;
title: string;
description?: string;
time: string;
icon?: LucideIcon;
unread?: boolean;
};
// block-local
type CommandPaletteGroup = {
heading: string;
items: { id: string; label: string; icon?: LucideIcon }[];
};A few cosmetic bits stay as constants in the installed file — edit them in place:
sessionsConfig / audienceConfig / visitorConfig — series labels and colors for each chart (colors reference the --chart-1…--chart-5 theme tokens).pageColumns — the Top pages DataTable column definitions (headers, sorting, cell renderers).Every panel is a composed Beste UI component installed alongside the block:
It also uses the shadcn/ui Button, Badge, Sheet, Command, and Dialog primitives for the topbar, mobile sidebar, and command palette.
Dialog-hosted Command menu, and selecting an item closes it.md and up) the left PanelLeft button toggles the sidebar between full and collapsed widths.md the sidebar is hidden and opens as a left-side Sheet from the topbar's PanelLeft button; navigating an item closes the sheet.Page, Views, and Bounce columns; bounce rates above 40% render in a red badge, others in an emerald badge."use client") because of the command palette, sidebar, and chart interactions, so it composes into any App Router page.<section> is h-screen w-full, with its own internal scroll region for the main content.<img>, so no next.config images.remotePatterns setup is needed for remote hosts.dashboard3
An e-commerce analytics dashboard: sidebar + search topbar, a four-up KPI row with period deltas, a net-profit area chart, a repeat-rate radial gauge, a busiest-weekday bar chart, and a best-selling products data table.
dashboard12
An observability console with an icon rail and a live status ribbon: a service-health grid with status dots and latency/uptime, a latency line chart, a request-volume area chart, a 30-day uptime bar strip, and a recent-events feed. A 1h/24h/7d tab control live-swaps the chart data.
dashboard4
A project-management dashboard: sidebar + search topbar, a four-up project stats row with one highlighted card, a weekly project-analytics bar chart, a reminder card with a start-meeting action, a team-collaboration list, a project-progress radial gauge, and a focus time-tracker card.
dashboard11
A health dashboard with a top navigation bar (no sidebar): three activity-ring radial gauges, a steps area chart and a heart-rate line chart, and a recent-workouts list. A Today/Week/Month segmented control live-swaps the chart data and totals.
dashboard8
A personal-finance dashboard: sidebar + search topbar, a dark total-balance hero with account tiles, a budget radial gauge, income/expense/savings KPIs, a cashflow bar chart, a spending-mix donut, and a colored transactions table.
dashboard9
A sales-CRM dashboard: sidebar + search topbar, pipeline KPIs, a four-stage kanban board of deal cards with owners and hot-lead flags, a revenue-vs-forecast area chart, a team-quota radial gauge, and a rep leaderboard with progress bars.