Display large amounts of text in collapsible sections. Commonly referred to as an accordion.
Show title only by default.
Specify what to display first.
Add text or components as subtitle.
Highlight importance at a higher level.
Collapse.Props
Attribute | Description | Type | Accepted values | Default |
---|---|---|---|---|
title(required) | collapse title | string | - | - |
subtitle | description | string | - | - |
initialVisible | initial expanded | boolean | - | false |
shadow | show shadow card | boolean | - | false |
... | native props | HTMLAttributes | 'id', 'name', 'className', ... | - |
Collapse.Group.Props
Attribute | Description | Type | Accepted values | Default |
---|---|---|---|---|
accordion | accordion mode | boolean | - | true |
... | native props | HTMLAttributes | 'id', 'name', 'className', ... | - |