Skip to Content
✨ QuickCode UI keeps growing! More components, more features, and more ways to make your projects shine. Stay tuned & maybe… hire me or sponsor me 😉 
DocumentationAccordion

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 Accordion

Default Usage

Default Accordion

Allow Multiple Open Items

Allow Multiple Open

Bordered Variant

Bordered Variant

Filled Variant with Large Size

Filled Variant Large

Props

PropTypeDefaultDescription
itemsArray<{title: string, content: string}>[]Array of objects containing title and content for each accordion item
allowMultiplebooleanfalseWhether 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