import type { Meta, StoryObj } from "@storybook/react"; import { MethodBadge, type HttpMethod } from "@shared/components/MethodBadge"; const meta: Meta = { title: "Primitives/MethodBadge", component: MethodBadge, parameters: { layout: "centered" }, args: { method: "POST" }, argTypes: { method: { control: "inline-radio", options: ["GET", "POST", "PUT", "PATCH", "DELETE"] satisfies HttpMethod[], }, }, }; export default meta; type Story = StoryObj; export const Default: Story = {}; export const InRow: Story = { render: () => (
/v1/coi
), }; export const Matrix: Story = { render: () => (
{(["GET", "POST", "PUT", "PATCH", "DELETE"] as const).map((m) => ( ))}
), };