button-group Component

Button Group System

Basic Button Groups

Preview Code
Copy

Button Group Sizes

Preview Code
Copy

Button Group Colors

Preview Code
Copy

Icon Navigation Groups

Preview Code
Copy

Separated Button Groups

Preview Code
Copy

Toggle Button Groups

Preview Code
Copy

Toolbar Button Groups

Preview Code
Copy

Pagination Button Groups

Preview Code
Copy

Tab Button Groups

Preview Code
Copy

Outline Button Groups

Preview Code
Copy

Mixed Content Button Groups

Preview Code
Copy

Vertical Button Groups

Preview Code
Copy

Fluid Width Button Groups

Preview Code
Copy

Stepper Button Groups

Preview Code
Copy

Compact Button Groups

Preview Code
Copy

Loading States

Preview Code
Copy

Disabled States

Preview Code
Copy

Button Group Class API Reference

Type Class Options Usage Notes
Base button-group Container for grouped buttons Required base class
Layout separated Adds gaps between buttons Buttons have individual borders
vertical Stack buttons vertically Changes to column layout
fluid Full width with equal sizing Buttons stretch to fill container
Size tiny Extra small size Inherits to all child buttons
small Small size Inherits to all child buttons
(default) Medium size No class needed
large Large size Inherits to all child buttons
big Extra large size Inherits to all child buttons
Types navigation Icon-only navigation For prev/next controls
toggle Radio-style selection Use with active class
toolbar Editor toolbar style Gray background container
pagination Page navigation Numeric pagination style
tabs Tab navigation Underline active style
stepper Step indicators Use with completed/active
compact Reduced padding Tighter button spacing
equal Equal width buttons All buttons same width
Colors primary Primary theme color Inherits to child buttons
positive Success/confirm Green color scheme
negative Danger/delete Red color scheme
warning Caution/alert Orange color scheme
info Informational Blue color scheme
+ all extended colors Additional colors red, orange, yellow, etc.
States active Active button state Applied to individual buttons
completed Completed step For stepper groups
disabled Disabled state Applied to individual buttons

Usage Examples

Basic Button Group

<div class="button-group">
    <button class="button">Left</button>
    <button class="button">Center</button>
    <button class="button">Right</button>
</div>

Navigation Controls

<div class="button-group navigation">
    <button class="button icon">
        <i class="icon arrow-left-s-line w-4 h-4"></i>
    </button>
    <button class="button icon">
        <i class="icon arrow-right-s-line w-4 h-4"></i>
    </button>
</div>

Toggle Group

<div class="button-group toggle">
    <button class="button active">Day</button>
    <button class="button">Week</button>
    <button class="button">Month</button>
    <button class="button">Year</button>
</div>

Toolbar

<div class="button-group toolbar">
    <button class="button icon">
        <i class="icon bold w-4 h-4"></i>
    </button>
    <button class="button icon active">
        <i class="icon italic w-4 h-4"></i>
    </button>
    <button class="button icon">
        <i class="icon underline w-4 h-4"></i>
    </button>
</div>

Pagination

<div class="button-group pagination">
    <button class="button icon">
        <i class="icon chevron-left w-4 h-4"></i>
    </button>
    <button class="button">1</button>
    <button class="button active">2</button>
    <button class="button">3</button>
    <button class="button icon">
        <i class="icon chevron-right w-4 h-4"></i>
    </button>
</div>