Accordion
This component is a user interface element that allows users to expand and collapse sections of content.
Last updated
This component is a user interface element that allows users to expand and collapse sections of content.
Last updated
Accordions can be used in a variety of scenarios, such as FAQs, product details, or any context where you want to provide users with the ability to reveal more information as needed without overwhelming them with too much content at once. By clicking on a section header, users can expand or collapse the corresponding content area, enabling a streamlined and interactive user experience.
The Accordion component supports two modes for managing opened sections:
Open Single at a Time: This mode ensures that only one section can be open at a time. When a new section is opened, the previously opened section will automatically close.
Multiple Sections: In this mode, multiple sections can be open simultaneously. Users can expand or collapse sections independently without affecting the state of other sections.
You can also customize the position of the expand/collapse icons for each section header. The available positions are:
None: No icon will be displayed.
Left: The icon will be displayed on the left side of the section header.
Right: The icon will be displayed on the right side of the section header.