import type { Meta, StoryObj } from "@storybook/vue3-vite"
import SpriteDisplay from "./SpriteDisplay.vue"
import { componentDoc } from "@/lib/storybook"

const meta = {
  title: "Elements/Display/SpriteDisplay",
  component: SpriteDisplay,
  tags: ["autodocs"],
  args: { label: "Confetti" },
  parameters: componentDoc("SpriteDisplay", { barrel: "display" }),
  decorators: [
    () => ({
      template: '<div class="max-w-xl p-4"><story /></div>',
    }),
  ],
} satisfies Meta<typeof SpriteDisplay>

export default meta
type Story = StoryObj<typeof meta>

export const Default: Story = {
  args: { label: "Confetti" },
}

export const WithCustomContent: Story = {
  args: { label: "Loading animation" },
}

export const Showcase: Story = {
  args: { label: "Confetti" },
}
