ShapeYourPath
(current)
Run Code
Live Code Editor- Bootstrap 5 Button Toolbar
Source Code
<!doctype html> <html lang="en"> <head> <!-- Required meta tags --> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content=""> <!-- Bootstrap CSS --> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/css/bootstrap.min.css" rel="stylesheet"> <title>Bootstrap 5 Button Toolbar</title> </head> <body> <div class="container"> <h1>Bootstrap 5 Button Toolbar</h1> <div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups"> <div class="btn-group mr-2" role="group" aria-label="First group"> <button type="button" class="btn btn-secondary">Button 1</button> <button type="button" class="btn btn-secondary">Button 2</button> <button type="button" class="btn btn-secondary">Button 3</button> <button type="button" class="btn btn-secondary">Button 4</button> </div> <div class="btn-group mr-2" role="group" aria-label="Second group"> <button type="button" class="btn btn-secondary">Button 5</button> <button type="button" class="btn btn-secondary">Button 6</button> <button type="button" class="btn btn-secondary">Button 7</button> </div> <div class="btn-group" role="group" aria-label="Third group"> <button type="button" class="btn btn-secondary">8</button> </div> </div> </div><!--/container--> <!-- Option 1: Bootstrap Bundle with Popper --> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.bundle.min.js"></script> </body> </html>
Output :
Running