Collapse
Display large amounts of text in collapsible sections. Commonly referred to as an accordion.
General
Show title only by default.
Expanded
Specify what to display first.
Subtitle
Add text or components as subtitle.
Shadow
Highlight importance at a higher level.
APIs
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', ... | - |
Contributors