Skip to main content
BlocksDashboardRevenue and customers overview dashboard with sidebar

shadcn/ui Dashboard block for React AriaRevenue and customers overview dashboard with sidebar

A full-page analytics dashboard built with shadcn/ui Sidebar, Chart (Recharts), Table, DropdownMenu, Popover, Dialog, ToggleGroup, InputGroup, Field and Progress. It includes a collapsible workspace sidebar, period and date-range controls, KPI tiles, revenue and orders comparison charts, and a searchable, filterable customers table with pagination and CSV export. Suited to SaaS billing and revenue overview pages.

Free@shadcnpro/aria/dashboard-01

Preview

Installation

npx shadcn@latest add @shadcnpro/aria/dashboard-01

First time? Add the @shadcnpro registry to components.json as shown in Installation. Free blocks install without a license key.

Let your AI editor install it

The shadcn/ui Pro MCP server lets Cursor, Claude Code and VS Code find and install blocks like Revenue and customers overview dashboard with sidebar from one prompt. It is included in every Pro plan.

Add the shadcn/ui components

Revenue and customers overview dashboard with sidebar uses Avatar, Button, Chart, Dialog, Dropdown Menu, Field, Input, Input Group, Popover, Progress, Separator, Sidebar, Table and Toggle Group, from the React Aria components set up in your components.json.

npx shadcn@latest add avatar button chart dialog dropdown-menu field input input-group popover progress separator sidebar table toggle-group

Install the npm packages

npm install date-fns lucide-react recharts

Copy the code

Paste it into components/dashboard-01/customers-table.tsx.

'use client';

import { type CSSProperties, useState } from 'react';
import { SidebarInset, SidebarProvider } from '@/components/ui/sidebar';
import { cn } from '@/lib/utils';
import { CustomersTable } from '@/components/dashboard-01/customers-table';
import { DashboardCharts } from '@/components/dashboard-01/dashboard-charts';
import { DashboardHeader } from '@/components/dashboard-01/dashboard-header';
import { DashboardSidebar } from '@/components/dashboard-01/dashboard-sidebar';

/**
 * Revenue and customers overview dashboard with a collapsible sidebar.
 */
export default function Dashboard01() {
  const [period, setPeriod] = useState<'day' | 'week' | 'month' | 'year'>(
    'week'
  );
  const [range, setRange] = useState({ from: '2026-03-16', to: '2026-03-22' });

  return (
    <SidebarProvider
      className="isolate h-dvh min-h-0 w-full bg-background text-foreground antialiased"
      defaultOpen={false}
      style={
        {
          '--sidebar-width': '15.5rem',
          '--sidebar-width-icon': '3.5rem',
        } as CSSProperties
      }
    >
      <a
        className="sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:z-50 focus:rounded-lg focus:bg-background focus:p-3"
        href="#overview"
      >
        Skip to dashboard
      </a>
      <DashboardSidebar />
      <SidebarInset className="min-w-0 overflow-y-auto" id="overview">
        <DashboardHeader
          onPeriodChange={setPeriod}
          onRangeChange={setRange}
          period={period}
          range={range}
        />
        <div className="@container/metrics border-b">
          <dl className="grid @3xl/metrics:grid-cols-4 grid-cols-2">
            {metrics.map((metric) => (
              <div
                className="flex min-w-0 flex-col justify-center gap-2 border-b @3xl/metrics:border-b-0 @3xl/metrics:not-first:border-l @3xl/metrics:px-7 px-4 py-6 even:border-l [&:nth-last-child(-n+2)]:border-b-0"
                key={metric.label}
              >
                <dt className="truncate text-muted-foreground text-sm sm:text-[0.9375rem]">
                  {metric.label}
                </dt>
                <dd className="flex flex-wrap items-baseline gap-2.5">
                  <span className="font-semibold text-[1.75rem] tabular-nums tracking-tight">
                    {metric.value}
                  </span>
                  <span
                    className={cn(
                      'font-medium text-[0.8125rem] tabular-nums',
                      metric.changeClass
                    )}
                  >
                    {metric.change}
                  </span>
                </dd>
              </div>
            ))}
          </dl>
        </div>
        <DashboardCharts from={range.from} period={period} to={range.to} />
        <CustomersTable />
      </SidebarInset>
    </SidebarProvider>
  );
}

const metrics = [
  {
    label: 'New customers',
    value: '2,146',
    change: '+6.3%',
    changeClass: 'text-primary',
  },
  {
    label: 'Payment success',
    value: '98.1%',
    change: '+0.4%',
    changeClass: 'text-primary',
  },
  {
    label: 'Failed payments',
    value: '1.9%',
    change: '-0.4%',
    changeClass: 'text-destructive',
  },
  {
    label: 'Refunds',
    value: '27',
    change: '-3.2%',
    changeClass: 'text-muted-foreground',
  },
];

Use it

Multi-file block: 5 files are installed under components/dashboard-01/.

Usage
import { CustomersTable } from '@/components/dashboard-01/customers-table';
<CustomersTable />

Overview

Revenue and customers overview dashboard with sidebar is a free dashboard block for shadcn/ui and React Aria. It is built from the Avatar, Button, Chart, Dialog, Dropdown Menu, Field, Input, Input Group, Popover, Progress, Separator, Sidebar, Table and Toggle Group components with date-fns, lucide-react and recharts, and installs as 5 files you own and can edit.

It only uses semantic tokens such as bg-background, text-muted-foreground and border-border, so it follows your theme, radius and fonts and switches with dark mode. It is responsive from desktop to mobile; the width controls above the preview show each size. The same layout is in the shadcn/ui Pro Figma kit, so design and code start from one source.

Category
Dashboard
Component library
React Aria (react-aria-components)
Also available for
Radix UI, Base UI
npm packages
date-fns, lucide-react, recharts
Files
5 files in app/
Access
Free, installs without a license key

Frequently asked questions

Pricing, installation and React Aria details for Revenue and customers overview dashboard with sidebar.