import type { Meta, StoryObj } from "@storybook/react"; import { MetricCard, Sparkline } from "@managemate/react"; const meta = { title: "Data display/MetricCard", component: MetricCard, tags: ["autodocs"], } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = { args: { label: "MRR", value: "84 320 €", delta: "+12.4%", trend: "up", period: "vs M-1", icon: "money-euro-circle-line" }, }; export const TrendDown: Story = { args: { label: "Tickets ouverts", value: "32", delta: "-18%", trend: "down", invertTrend: true, period: "cette semaine", icon: "error-warning-line" }, }; export const Flat: Story = { args: { label: "NPS", value: "62", delta: "0", trend: "flat", period: "stable", icon: "star-line" }, }; export const WithSparkline: Story = { args: { label: "Sessions", value: "12 480", delta: "+8.2%", trend: "up", period: "30 derniers jours", icon: "line-chart-line", sparkline: , }, }; export const Grid: Story = { render: () => (
), };