• Docs
  • Components
  • Blocks
  • Admin
CtrlK
Get Started
  • Introduction
  • Setup
  • CLI
  • VS Code Extension
  • Figma Code Connect
  • MCP Server
  • llms.txt
  • Changelog
Foundations
  • Design Tokens
  • Theming & Modes
  • Semantic Colors
  • Spacing
  • Typography
Testing
  • Test Guide
  • Performance Tests
  • Visual Regression
Components
  • Accordion
  • Activity Feed
  • Alert
  • Avatar
  • Badge
  • Breadcrumbs
  • Button
  • Card
  • Carousel
  • Checkbox
  • Collapsible
  • Combobox
  • Command Palette
  • Context Menu
  • Date Picker
  • Dialog
  • Dropdown Menu
  • File Upload
  • Hover Card
  • Input
  • Kbd
  • Label
  • Menubar
  • Metric Card
  • Multi Select
  • Navigation Menu
  • Pagination
  • Popover
  • Progress
  • Quick Actions
  • Radio
  • Rating
  • Resizable
  • Segmented Control
  • Select
  • Separator
  • Sheet
  • Skeleton
  • Slider
  • Spinner
  • Split Button
  • Stepper
  • Switch
  • Table
  • Tabs
  • Tag Input
  • Textarea
  • Timeline
  • Toast
  • Toggle
  • Toggle Group
  • Tooltip
  • Tree View
Blocks
  • Activity Feed
  • App Shell
  • Authentication Block
  • Benefits Section
  • Cta Section
  • Data Table
  • Empty State
  • Faq Section
  • Feature Grid Section
  • Footer Section
  • Hero Section
  • Kpi Dashboard
  • Kpi Strip
  • Link Card
  • Metric Card
  • Navigation Header
  • Pagination Footer
  • Pricing Table
  • Quick Actions
  • Settings Screen
Resources
  • API Reference

Dashboard Example

Complete dashboard example demonstrating Fragment UI blocks and components. This example shows how to build a production-ready dashboard with KPI cards, navigation, and widgets.

Live Example

Dashboard
OverviewAnalyticsSettings

Dashboard

Welcome to your dashboard

Total Users

↑+12%
12,345

Active users this month

Revenue

↑+8%
$45,678

Monthly recurring revenue

Orders

↑+5%
1,234

Orders this week

Conversion

↑+0.5%
3.2%

Conversion rate

Recent Activity

Latest user activities

Activity feed will appear here

Quick Actions

Common tasks

Quick action buttons will appear here

Notifications

Recent notifications

Notifications will appear here

Code Example

import { DashboardLayout, KPIDashboard, NavigationHeader } from "@fragment_ui/blocks";
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@fragment_ui/ui";

export default function Dashboard() {
  return (
    <DashboardLayout
      header={
        <NavigationHeader
          logoText="Dashboard"
          links={[
            { label: "Overview", href: "/" },
            { label: "Analytics", href: "/analytics" },
            { label: "Settings", href: "/settings" },
          ]}
        />
      }
    >
      <div className="space-y-6 p-6">
        <KPIDashboard
          metrics={[
            { id: "users", title: "Total Users", value: "12,345", trend: "up", trendValue: "+12%" },
            { id: "revenue", title: "Revenue", value: "$45,678", trend: "up", trendValue: "+8%" },
            { id: "orders", title: "Orders", value: "1,234", trend: "up", trendValue: "+5%" },
            { id: "conversion", title: "Conversion", value: "3.2%", trend: "up", trendValue: "+0.5%" },
          ]}
        />
        
        <div className="grid gap-4 md:grid-cols-2 lg:grid-cols-3">
          <Card>
            <CardHeader>
              <CardTitle>Recent Activity</CardTitle>
              <CardDescription>Latest user activities</CardDescription>
            </CardHeader>
            <CardContent>
              {/* Your content here */}
            </CardContent>
          </Card>
        </div>
      </div>
    </DashboardLayout>
  );
}

Key Components Used

  • DashboardLayout - Main dashboard container with sidebar and header
  • NavigationHeader - Top navigation bar with logo and menu items
  • KPIDashboard - Key performance indicator cards with trends
  • Card - Content cards for widgets and sections

Full Example Project

Check out the complete Next.js dashboard example in the repository:

examples/nextjs-dashboard/