Collapse

A content area which can be collapsed and expanded.

When To Use

  • Can be used to group or hide complex regions to keep the page clean.
  • Accordion is a special kind of Collapse, which allows only one panel to be expanded at a time.

Collapse

More than one panel can be expanded at a time.

A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome guest in many households across the world.
A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome guest in many households across the world.
A dog is a type of domesticated animal. Known for its loyalty and faithfulness, it can be found as a welcome guest in many households across the world.

Accordion

Accordion mode, only one panel can be expanded at a time.

This is panel header 1 content
This is panel header 2 content
This is panel header 3 content

Extra Node / Icons

You can use `icon` and `expandIcon` props to customize icons.

Manage your account settings and preferences.
View and update your payment methods and billing history.
Configure how you receive alerts and updates.

Custom Panel Header

Customize the header styles for each panel using the `title` slot.

This item uses a custom slot for the title to allow complex layouts.

API

Accordion

Property
Description
Type
Default

type

Sets the behavior to either allow "single" or "multiple" items expanded at once. "single" | "multiple" "multiple"

class

Additional CSS classes to apply to the accordion container. string ''

AccordionItem

Property
Description
Type
Default

title

The text title of the accordion item. string ''

isOpen

Whether the item is open by default. boolean false

icon

Icon to display to the left of the title. IconName ''

expandIcon

Icon to display to the right for the expand trigger. IconName "ChevronDown"

class

Additional CSS classes for the item. string ''