Buttons
General Buttons
Use a classes btn btn-success
to quickly create a General btn.
<div class="button-group">
<button type="button" class="btn waves-effect waves-light btn-primary">Primary</button>
<button type="button" class="btn waves-effect waves-light btn-secondary">Secondary</button>
<button type="button" class="btn waves-effect waves-light btn-success">Success</button>
<button type="button" class="btn waves-effect waves-light btn-info">Info</button>
<button type="button" class="btn waves-effect waves-light btn-warning">Warning</button>
<button type="button" class="btn waves-effect waves-light btn-danger">Danger</button>
<button type="button" class="btn waves-effect waves-light btn-light">Light</button>
<button type="button" class="btn waves-effect waves-light btn-dark">Dark</button>
</div>
Button Tags
The .btn
classes are designed to be used with the .<button>
element.
Link
<a class="btn btn-primary" href="#" role="button">Link</a>
<button class="btn btn-primary" type="submit">Button</button>
<input class="btn btn-primary" type="button" value="Input">
<input class="btn btn-primary" type="submit" value="Submit">
<input class="btn btn-primary" type="reset" value="Reset">
Button with outline
Use a classes btn btn-outline-success
to quickly create a General btn.
<div class="button-group">
<button type="button" class="btn waves-effect waves-light btn-outline-primary">Primary</button>
<button type="button" class="btn waves-effect waves-light btn-outline-secondary">Secondary</button>
<button type="button" class="btn waves-effect waves-light btn-outline-success">Success</button>
<button type="button" class="btn waves-effect waves-light btn-outline-info">Info</button>
<button type="button" class="btn waves-effect waves-light btn-outline-warning">Warning</button>
<button type="button" class="btn waves-effect waves-light btn-outline-danger">Danger</button>
<button type="button" class="btn waves-effect waves-light btn-outline-light">Light</button>
<button type="button" class="btn waves-effect waves-light btn-outline-dark">Dark</button>
</div>
Rounded Buttons
Use a classes btn btn-rounded btn-success
to quickly create a General btn.
<div class="button-group">
<button type="button" class="btn waves-effect waves-light btn-rounded btn-primary">Primary</button>
<button type="button" class="btn waves-effect waves-light btn-rounded btn-secondary">Secondary</button>
<button type="button" class="btn waves-effect waves-light btn-rounded btn-success">Success</button>
<button type="button" class="btn waves-effect waves-light btn-rounded btn-info">Info</button>
<button type="button" class="btn waves-effect waves-light btn-rounded btn-warning">Warning</button>
<button type="button" class="btn waves-effect waves-light btn-rounded btn-danger">Danger</button>
<button type="button" class="btn waves-effect waves-light btn-rounded btn-light">Light</button>
<button type="button" class="btn waves-effect waves-light btn-rounded btn-dark">Dark</button>
</div>
Rounded outlined Buttons
Use a classes btn btn-rounded btn-outline-success
to quickly create a General btn.
Block buttons
Use a classes btn btn-block btn-success
to quickly create a General btn.
<div class="row button-group">
<div class="col-lg-2 col-md-4">
<button type="button" class="btn waves-effect waves-light btn-block btn-info">Info</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn waves-effect waves-light btn-block btn-success">Success</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn waves-effect waves-light btn-block btn-primary">Primary</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn waves-effect waves-light btn-block btn-danger">Danger</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn waves-effect waves-light btn-block btn-secondary">Secondary</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn waves-effect waves-light btn-block btn-warning">Warning</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn waves-effect waves-light btn-block btn-light">Light</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn waves-effect waves-light btn-block btn-dark">Dark</button>
</div>
</div>
Rounded Block buttons
Use a classes btn btn-block btn-success
to quickly create a General btn.
<div class="row button-group">
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-rounded btn-block btn-info">Info</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-rounded btn-block btn-success">Success</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-rounded btn-block btn-primary">Primary</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-rounded btn-block btn-danger">Danger</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-rounded btn-block btn-secondary">Secondary</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-rounded btn-block btn-warning">Warning</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-rounded btn-block btn-light">Light</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-rounded btn-block btn-dark">Dark</button>
</div>
</div>
Block outline buttons
Use a classes btn btn-block btn-outline-success
to quickly create a General btn.
<div class="row button-group">
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-block btn-outline-info">Info</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-block btn-outline-success">Success</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-block btn-outline-primary">Primary</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-block btn-outline-danger">Danger</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-block btn-outline-secondary">Secondary</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-block btn-outline-warning">Warning</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-block btn-outline-light">Light</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-block btn-outline-dark">Dark</button>
</div>
</div>
Rounded outline Block buttons
Use a classes btn btn-block btn-outline-success
to quickly create a General btn.
<div class="row button-group">
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-rounded btn-block btn-outline-info">Info</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-rounded btn-block btn-outline-success">Success</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-rounded btn-block btn-outline-primary">Primary</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-rounded btn-block btn-outline-danger">Danger</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-rounded btn-block btn-outline-secondary">Secondary</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-rounded btn-block btn-outline-warning">Warning</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-rounded btn-block btn-outline-light">Light</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-rounded btn-block btn-outline-dark">Dark</button>
</div>
</div>
Large Block buttons
Use a classes btn btn-block btn-lg btn-success
to quickly create a General btn.
<div class="row button-group">
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-block btn-lg btn-info">Info</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-block btn-lg btn-success">Success</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-block btn-lg btn-primary">Primary</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-block btn-lg btn-danger">Danger</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-block btn-lg btn-secondary">Second</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-block btn-lg btn-warning">Warning</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-block btn-lg btn-light">Light</button>
</div>
<div class="col-lg-2 col-md-4">
<button type="button" class="btn btn-block btn-lg btn-dark">Dark</button>
</div>
</div>
Button with icon
Use a classes btn btn-success
& i class ="fa fa-heart"
to quickly create a General btn.
Group buttons
Wrap a series of buttons with .btn
in .btn-group
Button toolbar pagination
Wrap a series of buttons with .btn
in .btn-group
<div class="btn-group" role="group" aria-label="Basic example">
<button type="button" class="btn btn-secondary">Left</button>
<button type="button" class="btn btn-secondary">Middle</button>
<button type="button" class="btn btn-secondary">Right</button>
</div>
<div class="btn-group" role="group" aria-label="Basic example">
<button type="button" class="btn btn-info"><i class="fa fa-align-left"></i></button>
<button type="button" class="btn btn-info"><i class="fa fa-align-justify"></i></button>
<button type="button" class="btn btn-info"><i class="fa fa-align-right"></i></button>
</div>
<div class="btn-group" role="group" aria-label="Basic example">
<button type="button" class="btn btn-success"><i class="fa fa-fast-backward"></i></button>
<button type="button" class="btn btn-success"><i class="fa fa-play"></i></button>
<button type="button" class="btn btn-success"><i class="fa fa-fast-forward"></i></button>
</div>
<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 disabled">1</button>
<button type="button" class="btn btn-info">2</button>
<button type="button" class="btn btn-secondary">3</button>
<button type="button" class="btn btn-secondary">4</button>
</div>
<div class="btn-group mr-2" role="group" aria-label="Second group">
<button type="button" class="btn btn-secondary">5</button>
<button type="button" class="btn btn-secondary">6</button>
<button type="button" class="btn btn-secondary">7</button>
</div>
<div class="btn-group" role="group" aria-label="Third group">
<button type="button" class="btn btn-secondary">8</button>
</div>
</div>
Button Toolbar with Input Group
Button Toolbar with Jutify Content Input Group
<div class="btn-toolbar mb-3" 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"><i class="ti-move"></i></button>
<button type="button" class="btn btn-secondary"><i class="ti-fullscreen"></i></button>
<button type="button" class="btn btn-secondary"><i class="ti-target"></i></button>
<button type="button" class="btn btn-secondary"><i class="ti-trash"></i></button>
</div>
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text" id="btnGroupAddon"><i class="ti-email"></i></div>
</div>
<input type="text" class="form-control" placeholder="Subscribe Now" aria-label="Input group example" aria-describedby="btnGroupAddon">
</div>
</div>
<div class="btn-toolbar justify-content-between" role="toolbar" aria-label="Toolbar with button groups">
<div class="btn-group" role="group" aria-label="First group">
<button type="button" class="btn btn-secondary"><i class="ti-move"></i></button>
<button type="button" class="btn btn-secondary"><i class="ti-fullscreen"></i></button>
<button type="button" class="btn btn-secondary"><i class="ti-target"></i></button>
<button type="button" class="btn btn-secondary"><i class="ti-trash"></i></button>
</div>
<div class="input-group">
<div class="input-group-prepend">
<div class="input-group-text" id="btnGroupAddon2"><i class="ti-email"></i></div>
</div>
<input type="text" class="form-control" placeholder="Subscribe Now" aria-label="Input group example" aria-describedby="btnGroupAddon2">
</div>
</div>
Group buttons sizing
Wrap a series of buttons with .btn
in .btn-group
Nesting
creat with below code
<div class="btn-group btn-group-lg" role="group" aria-label="Basic example">
<button type="button" class="btn btn-secondary">Left</button>
<button type="button" class="btn btn-secondary">Middle</button>
<button type="button" class="btn btn-secondary">Right</button>
</div>
<div class="btn-group" role="group" aria-label="Basic example">
<button type="button" class="btn btn-info"><i class="fa fa-align-left"></i></button>
<button type="button" class="btn btn-info"><i class="fa fa-align-justify"></i></button>
<button type="button" class="btn btn-info"><i class="fa fa-align-right"></i></button>
</div>
<div class="btn-group btn-group-sm" role="group" aria-label="Basic example">
<button type="button" class="btn btn-success"><i class="fa fa-fast-backward"></i></button>
<button type="button" class="btn btn-success"><i class="fa fa-play"></i></button>
<button type="button" class="btn btn-success"><i class="fa fa-fast-forward"></i></button>
</div>
<div class="btn-group" role="group" aria-label="Button group with nested dropdown">
<button type="button" class="btn btn-secondary">1</button>
<button type="button" class="btn btn-secondary">2</button>
<div class="btn-group" role="group">
<button id="btnGroupDrop1" type="button" class="btn btn-secondary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Dropdown
</button>
<div class="dropdown-menu" aria-labelledby="btnGroupDrop1">
<a class="dropdown-item" href="[removed]void(0)">Dropdown link</a>
<a class="dropdown-item" href="[removed]void(0)">Dropdown link</a>
</div>
</div>
</div>
Vertical buttons
creat vertical button with class of .btn-group-vertical
Button with js elements
There are a few easy ways to quickly get started with Bootstrap, each one ...
Button with checkbox
Button with Radiobutton
Direction of the Dropdown
Trigger dropdown menus above elements by adding .dropup
to the parent element.
Dropdowm Right Side
Dropdown Up Side
Dropdowm Left Side
Menu Alignment
Add .dropdown-menu-right
to a .dropdown-menu
to right align the dropdown menu.
Responsive Alignment
Different Menu Content
Dropdown Options
Toggle States [Button Plugin]
Add data-toggle="button"
to toggle a button’s active
state. If you’re pre-toggling a button, you must manually add the .active
class and aria-pressed="true"
to the button.
Checkbox buttons with Click[Checked] event
Note that pre-checked buttons require you to manually add the .active
class to the input's label.
Radio buttons with Click[Checked] event
Note that pre-checked buttons require you to manually add the .active
class to the input's label.
BBB