import type { Meta, StoryObj } from '@storybook/react' import { Accordion, AccordionItem, AccordionTrigger, AccordionContent, } from '@/components/ui/accordion' const meta = { title: 'Layout/Accordion', component: Accordion, tags: ['autodocs'], parameters: { layout: 'centered' }, } satisfies Meta export default meta type Story = StoryObj export const Single: Story = { render: () => ( Is it accessible? Yes. It adheres to the WAI-ARIA design pattern. Is it styled? Yes. It comes with default styles that match the other components. Is it animated? Yes. It uses CSS animations for smooth open and close transitions. ), } export const Multiple: Story = { render: () => ( What is Greyhaven? Greyhaven is a design system built with Radix UI and Tailwind CSS. How do I install it? You can install it via npm or pnpm. Check the documentation for details. Can I customize themes? Absolutely. The design system uses CSS custom properties for full theme control. ), } export const DefaultOpen: Story = { render: () => ( Open by default This accordion item is open by default. Click to open This accordion item starts closed. ), }