ShapeYourPath
(current)
Run Code
Live Code Editor- Bootstrap 4 Spinner Button
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, shrink-to-fit=no" /> <meta name="description" content=""> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" /> <title>Bootstrap 4 Spinner Button</title> </head> <body> <div class="container mt-4"> <h1>Bootstrap 4 Spinner Button</h1> <p>Bootstrap spinner button is used to create loading state inside the project.</p> <div class="row"> <div class="col mb-5"> <button class="btn btn-primary"><span class="spinner-border spinner-border-sm"></span></button> </div> <div class="col mb-5"> <button class="btn btn-primary"><span class="spinner-border spinner-border-sm"></span> Loading..</button> </div> <div class="col mb-5"> <button class="btn btn-primary" disabled><span class="spinner-border spinner-border-sm"></span> Loading..</button> </div> <div class="col mb-5"> <button class="btn btn-primary" disabled><span class="spinner-grow spinner-grow-sm"></span> Loading..</button> </div> </div> </div> <!--/container--> <!-- jQuery first, then Popper.js, then Bootstrap JS --> <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> </body> </html>
Output :
Running