accordion
v1.0.4arrow_drop_downv1.0.4
v1.0.3
v1.0.2
v1.0.1
v1.0.0
STATUS
Passing
DOWNLOADS
5
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
5 KB
1 contributor
Like
Install accordion as a package?
Copied
npm i @bit/ashwani18.lss-shared-ui-components.accordion
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
Properties
Name | Type | Default value | Description |
---|---|---|---|
selected | number | number[] | [] | index(es) of panels that should be open. If multiple then this should be an array. |
multiple | bool | false | multiple panels can be open at once. |
children (required) | element | element[] | requires at least one child of type | |
shouldScroll | bool | false | panel should be scrolled into view when it is opened. |
scrollDelay | number | 300 | scroll delay for shouldScroll |
className | string | '' | additional classes to add to the accordion. |
title | string | The title that appears on the button for a panel. | |
children | node | The content of the panel. This can be any valid HTML or react components. | |
idx | number | ||
selected | bool | false | |
tabIndex | number | ||
toggle | function | f => f | |
handleRef | function | ||
onPanelSelected | function | ||
uniqueId | number |