import React from 'react'
import { type Meta, type StoryObj } from '@storybook/react-vite'
import Button from '../Button/Button'
import Icon from '../Icons/Icon'
import Pill from '../Pill/Pill'
import Tooltip from '../Tooltip/Tooltip'
import Accordion from './Accordion'
import { toast } from '../Toast/Toast'
import { DocsTemplate } from '../../../.storybook'
const meta: Meta A collapsible accordion component that can show/hide content You can put any content here. A collapsible accordion component that can show/hide content This section demonstrates actions in the header This content cannot be accessed when disabled
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
This section is expanded by default
, }, } export const WithCallout: Story = { ...Template, args: { title: 'Accordion with Callout', subtitle: 'Click the accordion to see the callout in action', children:Click the accordion to see the callout in action
, callout: (isExpanded) => { toast({ message: `Accordion is now ${isExpanded ? 'expanded' : 'collapsed'}.`, type: 'info', }) }, }, } export const WithControlledRadioSelection: Story = { ...Template, args: { title: 'Accordion with Controlled Radio Selection', checked: true, children: (The state of the Accordion radio button can be managed on the application side.
), }, } export const WithBackgroundColor: Story = { ...Template, args: { title: 'Accordion with Background Color', backgroundColor: 'faint-gray', children:Background color will also be applied to content part.
, }, } export const WithCaretText: Story = { ...Template, args: { title: 'Accordion with Background Color', backgroundColor: 'faint-gray', children:Background color will also be applied to content part.
, caretText:EDIT DETAILS
, }, } export const WithoutRadioButton: Story = { ...Template, args: { title: 'First Section', subtitle: 'With subtitle', showRadioButton: false, children: (A collapsible accordion component that can show/hide content
You can put any content here.