/* Copyright 2026 Marimo. All rights reserved. */ import type { Meta, StoryFn } from "@storybook/react-vite"; import { StatComponent } from "@/plugins/layout/StatPlugin"; const meta: Meta = { title: "Stat", component: StatComponent, args: {}, }; export default meta; const Template: StoryFn = (args) => (
); export const Full = Template.bind({}); Full.args = { label: "Revenue", value: "$80,000", caption: "Last 30 days", }; export const Increase = Template.bind({}); Increase.args = { label: "Revenue", value: "$80,000", caption: "+42%", direction: "increase", }; export const Decrease = Template.bind({}); Decrease.args = { label: "Churn", value: "6.4%", caption: "-4%", direction: "decrease", }; export const Bordered = Template.bind({}); Bordered.args = { label: "Revenue", value: "$80,000", caption: "Last 30 days", bordered: true, }; export const Grid = () => { return (
); }; export const Flex = () => { return (
); };