<pclass="lead">While not always necessary, sometimes you need to put your DOM in a box. For those situations, try the panel component.</p>
<h3>Basic panel</h3>
<p>By default, all the <code>.panel</code> does is apply some basic border and padding to contain some content.</p>
<divclass="bs-docs-example">
<divclass="panel">
Basic panel example
</div>
</div>
{% highlight html linenos %}
<divclass="panel">
Basic panel example
</div>
{% endhighlight %}
<h3>Panel with heading</h3>
<p>Easily add a heading to your panel with <code>.panel-heading</code>. Use it on a <code><div></code> or any heading element (e.g., <code><h3></code>).</p>
<divclass="bs-docs-example">
<divclass="panel">
<divclass="panel-heading">Panel heading</div>
Panel content
</div>
</div>
{% highlight html linenos %}
<divclass="panel">
<divclass="panel-heading">Panel heading</div>
Panel content
</div>
{% endhighlight %}
<h3>Contextual alternatives</h3>
<p>Like other components, easily make a panel more meaningful to a particular context by adding any of the contextual state classes.</p>