Accordion

Like the accordion instrument, our accordion component reveals or hides associated sections of content. This is done through the use of a vertically stacked list of headers.

Users can decide which sections to toggle, read and close as the header titles will give them a high-level overview of the content that's in the space.

Default

Open by default

Deposit & Withdrawals

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Without button

Disabled

Content outside

Basket Items

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Header content

Sizes

please note that also for sizes we do use explicit namings also - "xlarge", "large", "medium", "small"

Sizes: content outside

With background

Props
Name Type Required Default Description
title slot Yes - Title of accordion
open_by_default boolean No false Expanded/collapsed accordion by default
with_button boolean No true Show expand/collapse chevron
disabled boolean No false Disable expand/collapse accordion
content slot Yes - Content to show inside of accordion
size sm | md | lg | xl false medium Size variant of accordion
is_content_inside boolean false false Whether the content is displayed outside of the accordion header