Button Group

Classes Information

ClassNameDescription
btn-groupContainer element
btn-activeActive state
btn-group-verticalVertical orientation
btn-group-horizontalHorizontal orientation
btn-group-scrollablePrevent buttons break when go to small sizes and add scroll
btn-group-roundedFirst and last child fully rounded

Basic Usage

Example Code

html
<div class="btn-group btn-group-scrollable">
    <button class="btn">Primary</button>
    <button class="btn">Primary</button>
    <button class="btn">Primary</button>
    <button class="btn">Primary</button>
</div

Vertical

Example Code

html
<div class="btn-group btn-group-scrollable btn-group-vertical">
    <button class="btn">Primary</button>
    <button class="btn">Primary</button>
    <button class="btn">Primary</button>
    <button class="btn">Primary</button>
</div>

Rounded

Example Code

html
<div class="btn-group btn-group-scrollable btn-group-rounded">
    <button class="btn">Primary</button>
    <button class="btn">Primary</button>
    <button class="btn btn-active">Primary</button>
    <button class="btn">Primary</button>
</div>

As Radio

Example Code

html
<div class="btn-group btn-group-scrollable">
    <input type="radio" name="options" data-content="1" class="btn" />
    <input type="radio" name="options" data-content="2" class="btn" />
    <input type="radio" name="options" data-content="3" class="btn" />
    <input type="radio" name="options" data-content="4" class="btn" />
</div>