accordion

v1.0.4arrow_drop_down
v1.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
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
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
No preview available
modifieddraft
chevron_left
chevron_right
Properties
NameTypeDefault valueDescription
selected
number | number[][]

index(es) of panels that should be open. If multiple then this should be an array.

multiple
boolfalse

multiple panels can be open at once.

children
(required)
element | element[]

requires at least one child of type

shouldScroll
boolfalse

panel should be scrolled into view when it is opened.

scrollDelay
number300

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
boolfalse
tabIndex
number
toggle
functionf => f
handleRef
function
onPanelSelected
function
uniqueId
number
Help and resources