Accordion
A flexible and accessible accordion component that allows users to expand and collapse content sections. Built with smooth animations and multiple styling variants.
Install Dependencies
npx quickcode-ui add AccordionDefault Usage
Default Accordion
Allow Multiple Open Items
Allow Multiple Open
Bordered Variant
Bordered Variant
Filled Variant with Large Size
Filled Variant Large
Props
| Prop | Type | Default | Description |
|---|---|---|---|
items | Array<{title: string, content: string}> | [] | Array of objects containing title and content for each accordion item |
allowMultiple | boolean | false | Whether multiple accordion items can be open simultaneously |
variant | "default" | "bordered" | "filled" | "default" | Visual style variant of the accordion |
size | "sm" | "md" | "lg" | "md" | Size variant that affects text size and padding |
Last updated on