import type { Meta, StoryObj } from "@storybook/web-components-vite"; import { Accordion, type AccordionProps } from "./Accordion"; const meta = { title: "Components/Accordion", tags: ["autodocs"], render: (args, context) => Accordion({ ...args, toggleValue: context.viewMode === "docs" ? undefined : context.id, }), argTypes: { bordered: { control: { type: "boolean" } }, }, } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = { args: { bordered: false, allowMultiple: false, }, }; export const Bordered: Story = { args: { bordered: true, allowMultiple: false, }, }; export const Multiple: Story = { args: { bordered: false, allowMultiple: true, }, };