import {Widget} from "@peakui-pro/react";// The widget ships from the package root: it imports no chart, so framing one needs no charting// library here. Put the chart in `Content`, imported from its own subpath.export default () => ( <Widget> <Widget.Header> <Widget.Title /> <Widget.Description /> <Widget.Legend> <Widget.LegendItem color="var(--chart-3)" /> </Widget.Legend> </Widget.Header> <Widget.Content /> <Widget.Footer /> </Widget>);
"use client"; // the chart is built from compound parts, which a server file cannot reachimport {Widget} from "@peakui-pro/react";import {LineChart} from "@peakui-pro/react/line-chart";
Requests Over Time
Requests
"use client"; // the chart is built from compound parts, which a server file cannot reachimport {Widget} from "@peakui-pro/react";import {BarChart} from "@peakui-pro/react/bar-chart";
RevenueLast 6 months
"use client"; // the chart is built from compound parts, which a server file cannot reachimport {Widget} from "@peakui-pro/react";import {LineChart} from "@peakui-pro/react/line-chart";
Browser Usage
Chrome
Safari
Firefox
Edge
"use client"; // the chart is built from compound parts, which a server file cannot reachimport {Widget} from "@peakui-pro/react";import {PieChart} from "@peakui-pro/react/pie-chart";
Key MetricsLast 6 months
Total Revenue
$228,451.00
3.3%last 30d
"use client"; // the chart is built from compound parts, which a server file cannot reachimport {KPIGroup, TrendChip, Widget} from "@peakui-pro/react";import {KPI} from "@peakui-pro/react/kpi";import {LineChart} from "@peakui-pro/react/line-chart";
Storage88 of 128 GB
69% used
import {Widget} from "@peakui-pro/react";/* The footer sits on the shell, under the content: an action row, or a line of metadata. */export function WithFooter() { return (
Overview
$228K1,234
Revenue
Requests
"use client"; // the chart is built from compound parts, which a server file cannot reachimport {Widget} from "@peakui-pro/react";import {BarChart} from "@peakui-pro/react/bar-chart";import {LineChart} from "@peakui-pro/react/line-chart";