19 lines
778 B
Markdown
19 lines
778 B
Markdown
![]() |
## API
|
||
|
|
||
|
### Collapse
|
||
|
|
||
|
| Property | Description | Type | Default |
|
||
|
| -------- | ----------- | ---- | ------- |
|
||
|
| value | name of the active panel | \[]\|string | No default value. In `accordion` mode, it's the name of the first panel. |
|
||
|
| defaultValue | name of the initial active panel | string | - |
|
||
|
| change | Callback function executed when active panel is changed | Function | - |
|
||
|
|
||
|
### Collapse.Panel
|
||
|
|
||
|
| Property | Description | Type | Default |
|
||
|
| -------- | ----------- | ---- | ------- |
|
||
|
| disabled | If `true`, panel cannot be opened or closed | boolean | `false` |
|
||
|
| header | Title of the panel | string | - |
|
||
|
| name | Unique name identifying the panel from among its siblings | string | - |
|
||
|
| showArrow | If `false`, panel will not show arrow icon | boolean | `true` |
|