Accordion
Snippet
import { Accordion } from '@creo-team/buzz-ui/client'
<Accordion items={[
{ key: 'a', header: 'Section A', content: 'Content A' },
{ key: 'b', header: 'Section B', content: 'Content B' },
]} />
API Reference
Accordion Props
Prop | Type | Default | Description |
---|---|---|---|
items * | AccordionItem[] | — | Array of accordion items to display |
defaultOpen | string[] | — | Array of item keys that should be open by default |
allowMultiple | boolean | false | Allow multiple items to be open simultaneously |
className | string | — | Additional CSS classes |
Full API: /components/accordion/api