import React from 'react'; import type { Meta, StoryObj } from '@storybook/react-vite'; import { DaisyCollapsible } from './DaisyCollapsible'; const meta: Meta = { title: 'daisy/DaisyCollapsible', component: DaisyCollapsible.Root, parameters: { layout: 'centered', }, tags: ['autodocs'], }; export default meta; type Story = StoryObj; export const Basic: Story = { render: () => ( Click to expand

This content is hidden by default and shown when the collapsible is opened.

), }; export const WithArrow: Story = { render: () => ( Collapsible with Arrow

This collapsible has an arrow indicator that rotates when opened/closed.

It also has a background color applied via DaisyUI classes.

), }; export const WithPlus: Story = { render: () => ( Collapsible with Plus

This collapsible uses a plus/minus indicator instead of an arrow.

), }; export const Multiple: Story = { render: () => (
First Item

Content for the first collapsible item.

Second Item

Content for the second collapsible item.

Third Item

Content for the third collapsible item.

), };