JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="https://raw.github.com/twitter/bootstrap/master/docs/assets/css/bootstrap.css">
<script src="https://github.com/twitter/bootstrap/blob/master/docs/assets/img/glyphicons-halflings-white.png"></script>
<div class='expandable'>
<h2 class="collapsed">Top Five Love<i class="icon-plus-sign"></i></h2>
<ul id="myList">
<li>First item</li>
<li>Second item</li>
<li>Third item</li>
<li>Fourth item</li>
<li>Fifth item</li>
</ul>
</div>
CSS
.icon-plus-sign {
background-position: 0 -96px;
background-image: url("../images/glyphicons-halflings-white.png");
float: right;
margin: 5px;
}
.icon-minus-sign {
background-position: -24px -96px;
background-image: url("../images/glyphicons-halflings-white.png");
float: right;
margin: 5px;
}
.expandable{
/*height: 25px;*/
overflow: hidden;
width: 200px;
background-color: #2C2C2C;
border-radius: 5px;
color: #fff;
}
#myList {
display: none;
}
.collapsed{
height: 25px;
font-size: 1.1em;
box-sizing: border-box;
padding-left: 25px;
cursor: pointer;
background-color: #333;
color: #fff;
padding-left: 10px;
}
JavaScript
$('.expandable').find('h2').on('click', function(){
$("#myList").slideToggle('speed');
})