import type { Meta, StoryObj } from "@storybook/react"; import { ThemeProviderDecorators } from "@/storybook/Decorator"; import { Badge } from "./badge"; const meta = { title: "UI/Badge", component: Badge, tags: ["autodocs"], args: { size: "md", }, decorators: ThemeProviderDecorators, } satisfies Meta; export default meta; type Story = StoryObj; export const DefaultBadge = { args: { children: "Label", }, } satisfies Story; export const BadgeWithPrevIcon = { args: { children: "Label", leftIcon: { name: "Dot", size: 16, strokeWidth: 6, }, }, render: (args) => { return (
); }, } satisfies Story; export const BadgeWithLastIcon = { args: { children: "Label", rightIcon: { name: "ArrowRight", }, }, render: (args) => { return (
); }, } satisfies Story; export const BadgeWithClosable = { args: { children: "Label", closable: true, // eslint-disable-next-line no-console onClose: () => console.log("Close"), }, render: (args) => { return (
); }, } satisfies Story;