Button styles can be applied to anything with the .btn
class applied. However, typically you'll want to apply these to only <a>
and <button>
elements for the best rendering.
Button | class="" | Description |
---|---|---|
btn |
Standard gray button with gradient | |
btn btn-primary |
Provides extra visual weight and identifies the primary action in a set of buttons | |
btn btn-info |
Used as an alternative to the default styles | |
btn btn-success |
Indicates a successful or positive action | |
btn btn-warning |
Indicates caution should be taken with this action | |
btn btn-danger |
Indicates a dangerous or potentially negative action | |
btn btn-inverse |
Alternate dark gray button, not tied to a semantic action or use |
Flat Button styles can be applied to anything with the .btn
class applied. However, typically you'll want to apply these to only <a>
and <button>
elements for the best rendering.
Button | class="" | Description |
---|---|---|
btn btn-flat |
Standard gray button with gradient | |
btn btn-primary btn-flat |
Provides extra visual weight and identifies the primary action in a set of buttons | |
btn btn-info btn-flat |
Used as an alternative to the default styles | |
btn btn-success btn-flat |
Indicates a successful or positive action | |
btn btn-warning btn-flat |
Indicates caution should be taken with this action | |
btn btn-danger btn-flat |
Indicates a dangerous or potentially negative action | |
btn btn-inverse btn-flat |
Alternate dark gray button, not tied to a semantic action or use |
Fancy larger or smaller buttons? Add .btn-large
, .btn-small
, or .btn-mini
for additional sizes.
Create block level buttons—those that span the full width of a parent— by adding .btn-block
.
Links are customizable for different circumstances. Use .disabled
for unclickable links and .active
to indicate the current page.
A single example shown as it might be displayed across multiple pages.
Wrap a series of buttons with .btn
in .btn-group
.
Button dropdowns work at any size: .btn-large
, .btn-small
, or .btn-mini
.