1. Docs
  2. Accordion

Accordion

A vertically stacked set of interactive headings that each reveal an associated section of content.

Loading...

Installation

Examples

Multiple

If you set type to multiple then accordion will allow multiple items to expend the same time

Loading...

Disabled

If you use disabled prop to AccordionItem then that item will disabled

Loading...

Different Arrow

Change icon attribute in AccordionTrigger to change icon for specific trigger

Loading...

Controlled

If you use value and onValueChange attribute to Accordion then it will control item states

Loading...

Props

Accordion

PropTypeDefault
variantunderline outline softunderline

AccordionTrigger

PropTypeDefault
iconReactNode<ChevronDownIcon />