React component for expand/collapse
npm install @sb1/ffe-collapse-reactReact component for expand/collapse
```
npm install --save @sb1/ffe-collapse-react
Full documentation on collapse usage is available at https://design.sparebank1.no/komponenter/collapse/.
Please note the component depends on transition styling for height.\.ffe-collapse-transition
This can preferably be done by importing the less-file from the less-folder
in the package.\
Alternatively you can do it by adding style to the class\, adding it to your own class and provide the classclassName
through the property or by styling it directly through the style property.
If your project does not use Less, you can import the compiled styling:
`css`
@import '~@sb1/ffe-collapse-react/css/collapse.css';
To start a local development server, run the following from the designsystem root folder:
`bash`
npm install
npm run build
npm start
A local instance of Storybook` with live reloading will run at http://localhost:6006/.
Example implementations using the latest versions of all components are also available at https://sparebank1.github.io/designsystem.