Manage and present large amounts of content in a compact and organized manner. Use accordions for organized content, FAQ elements, or presenting product information.
Preview
We provide 30 days of support.
Yes!
Hopefully.
Accordion components expect a single items prop in the form of an array of objects to set accordion elements. You can use HTML tags in the content property to format your content.
Accordion Icons
By default, the Accordion component uses chevron icons. This can be changed to a plus icon using the icon prop, or can be removed entirely:
Default
We provide 30 days of support.
Yes!
Hopefully.
Plus icon
We provide 30 days of support.
Yes!
Hopefully.
No icon
We provide 30 days of support.
Yes!
Hopefully.
Reverse and Alternating Layout
You can also change the order of the icon and title with the reverse and item.reverse props to create different layouts:
Reverse layout
We provide 30 days of support.
Yes!
Hopefully.
Alternating layout
We provide 30 days of support.
Yes!
Hopefully.
API
Prop
Purpose
items.title
Sets the title of the accordion.
items.content
Sets the content related to the title. Pass HTML along with your string to render HTML.
items.reverse
Changes the order of the title and the icon.
icon
Sets the icon. Uses a chevron by default, which can be changed to a plus sign or no icon.
reverse
Changes the order of the title and the icon for all items.