import type { Meta, StoryObj } from '@storybook/react-vite'; import { Lock } from 'iconoir-react'; import { useState } from 'react'; import { expect, userEvent, within } from 'storybook/test'; import SectionCard from './SectionCard'; const sectionCardDescription = `Collapsible card used on the account settings page to group a labeled form behind a toggle. These stories cover the closed and open states, plus the toggle interaction, so you can review spacing, icon alignment, and disclosure behavior in isolation.`; const SectionCardDemo = (props: React.ComponentProps) => { const [open, setOpen] = useState(props.open); return (
setOpen((value) => !value)} />
); }; const meta = { title: 'Account/SectionCard', component: SectionCard, tags: ['autodocs'], args: { icon: