import type { Meta, StoryObj } from "@storybook/react-vite"; import { Banner } from "@shared/components/Banner"; import { Button } from "@shared/components/Button"; const meta: Meta = { title: "Primitives/Banner", component: Banner, tags: ["autodocs"], parameters: { layout: "padded" }, args: { tone: "info", title: "Heads up", description: "Storage quota approaching 80%.", }, argTypes: { tone: { control: "inline-radio", options: ["info", "success", "warning", "danger", "neutral"], }, onDismiss: { action: "dismissed" }, }, decorators: [ (S) => (
), ], }; export default meta; type Story = StoryObj; /** Flip tone / title / description / action / onDismiss in controls. */ export const Playground: Story = {}; export const WithAction: Story = { args: { tone: "warning", title: "Approaching cap", description: "389k of 500k docs processed.", action: ( ), }, }; export const ToneMatrix: Story = { render: () => (
), };