BS4 Collapse
Basic Collapsible
Collapsibles come very handy when you wish to display and conceal a lot of content:
===== BUTTON MUKAVU ====
Example
Lorem ipsum dolor text....
Example Explained
A collapsible element, represented by a <div> in our example, is indicated by the .collapse class; this is the content that may be revealed or concealed with a button click.
You can add the data-toggle=”collapse” property to a <a> or <button> element to manipulate (show/hide) the collapsible content. The button will then be connected to the collapsible content (<div id=”demo”>) by adding the data-target=”#id” property.
Note: The href attribute can be used for <a> elements in place of the data-target attribute:
Example
Collapsible
Lorem ipsum dolor text....
The collapsible content is hidden by default. But if you want to display the content by default, you can add the .show class:
Example
Lorem ipsum dolor text....
Accordion
In the example below, the card component is extended to create a basic accordion.
Note: Make sure that when one of the collapsible items is displayed, all collapsible elements under the designated parent will be closed by using the data-parent attribute.
Example
Lorem ipsum..
Lorem ipsum..
Lorem ipsum..