The Collapsible is a component that can hid and show another component when a event is triggered from a button or a link.
$ yarn add @nimbus-ds/collapsible
# or
$ npm install @nimbus-ds/collapsible
The component consists of a Item, Body and a container that can encapsulate the logic of hide and show some stuff.
We use Collapsible to hide some content and show it only when a open event is triggered
- Hide and show a component
- Display a hint of a text and hide the bigger part of it until the user click on a button
- Accordion - It is a component allows us to compress content into containers that can be opened or closed.
View docs here.