Accordion
Basic
The Accordion component allows you to display content in collapsible sections. Users can expand and collapse
individual sections to view or hide their content.
Content for section 1
Content for section 2
Content for section 2
Answer to FAQ 1
Answer to FAQ 2
The basic usage of the Accordion component involves providing a dataSource array that defines the sections and their
content.
Multiple Sections
The multiple prop allows multiple sections to be open at the same time.
Preparing your body for workout
Building muscle and endurance
Improving cardiovascular health
Helping your body recover
Fueling your workouts
Animation Duration
The animationDuration prop controls how quickly sections open or close, measured in milliseconds.
Opens quickly
Opens quickly
Opens slowly
Opens slowly
Icon Type
The icon prop specifies the icon used for the accordion toggle.
Supported icons:
"ChevronDown": A chevron icon pointing down."ArrowDownCircle": A circular arrow-down icon."Plus": A plus icon for expand/collapse.
Common questions and answers
Browse our product range
See what our customers say
Details about our shipping process
Our policy for returns and refunds
List of ingredients for the recipe
Step-by-step cooking guide
Nutritional facts and values
Ideas for serving the dish
Comments and ratings from users
Custom Classes
You can customize the appearance of the accordion with the following class props:
class: CSS class for the accordion container.classItem: CSS class for individual accordion items.classTitle: CSS class for the title of an accordion item.classSubtitle: CSS class for the subtitle of an accordion item.
Custom styles applied
Slots
The title slot lets you customize the content displayed in the accordion header.
Uses default title slot
This section has a custom title