mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 19:33:11 +02:00
Portal: full mock-driven surfaces, demonolithed components, backend-ready mocks (#6686)
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import type { Meta, StoryObj } from "@storybook/react-vite";
|
||||
import { MetricStrip } from "@shared/components/MetricStrip";
|
||||
import { MetricCard } from "@shared/components/MetricCard";
|
||||
|
||||
const meta: Meta<typeof MetricStrip> = {
|
||||
title: "Layout/MetricStrip",
|
||||
component: MetricStrip,
|
||||
tags: ["autodocs"],
|
||||
parameters: { layout: "padded" },
|
||||
};
|
||||
export default meta;
|
||||
type Story = StoryObj<typeof MetricStrip>;
|
||||
|
||||
/** Four-up KPI row; collapses to two columns below 50rem. */
|
||||
export const Default: Story = {
|
||||
render: () => (
|
||||
<MetricStrip>
|
||||
<MetricCard label="Docs / 30d" value="48,210" delta={0.12} />
|
||||
<MetricCard label="Pipelines" value="12" delta={0.16} />
|
||||
<MetricCard label="Agents active" value="7" delta={0.4} />
|
||||
<MetricCard label="Eval pass rate" value="94.6%" delta={0.02} />
|
||||
</MetricStrip>
|
||||
),
|
||||
};
|
||||
Reference in New Issue
Block a user