Accordion

Show and hide content using the collapse component.

Example

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

        
            <div class="accordion" id="accordionQuestions">
                <div class="card shadow mb-2">
                    <div class="card-header" id="headingOne">
                        <h3 class="card-title">
                            <a class="collapsed" href="#collapseOne" role="button" data-toggle="collapse" data-target="#collapseOne" aria-expanded="false" aria-controls="collapseOne">Question #1 <i class="fas fa-angle-down float-right rotate-icon" aria-hidden="true"></i>
                            </a>
                        </h3>
                    </div>
                    <div id="collapseOne" class="collapse" aria-labelledby="headingOne" data-parent="#accordionQuestions">
                        <div class="card-body">
                            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
                        </div>
                    </div>
                </div>
                <div class="card shadow mb-2">
                    <div class="card-header" id="headingTwo">
                        <h3 class="card-title">
                            <a class="collapsed" role="button" href="#collapseTwo" data-toggle="collapse" data-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">Question #2 <i class="fas fa-angle-down float-right rotate-icon" aria-hidden="true"></i>
                            </a>
                        </h3>
                    </div>
                    <div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionQuestions">
                        <div class="card-body">
                            <p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
                        </div>
                    </div>
                </div>
                <div class="card shadow mb-2">
                    <div class="card-header" id="headingThree">
                        <h3 class="card-title">
                            <a class="collapsed" role="button" href="#collapseThree" data-toggle="collapse" data-target="#collapseThree" aria-expanded="false" aria-controls="collapseThree">Question #3<i class="fas fa-angle-down float-right rotate-icon" aria-hidden="true"></i>
                            </a>
                        </h3>
                    </div>
                    <div id="collapseThree" class="collapse" aria-labelledby="headingThree" data-parent="#accordionQuestions">
                        <div class="card-body">
                            <p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>
                        </div>
                    </div>
                </div>
            </div>
        
    

Bootstrap Documentation