import type { Meta, StoryObj } from '@storybook/react'
import AccordionDemo from './accordion.composition'
// More on how to set up stories at: https://storybook.js.org/docs/7.0/react/writing-stories/introduction
const meta = {
  title: 'Accordion',
  component: AccordionDemo,
  tags: ['autodocs'],
  argTypes: {},
} satisfies Meta<typeof AccordionDemo>

export default meta
type Story = StoryObj<typeof meta>

// More on writing stories with args: https://storybook.js.org/docs/7.0/react/writing-stories/args
export const Primary: Story = {
  args: {
    items: [
      { title: '1', content: '1' },
      { title: '2', content: '2' },
    ],
  },
}
