The Bootstrap 4 default buttons have received a makeover. You use them just the same way.
Primary
Secondary
Success
Info
Warning
Danger
<button type= "button" class= "btn btn-primary" > Primary</button>
<button type= "button" class= "btn btn-secondary" > Secondary</button>
<button type= "button" class= "btn btn-success" > Success</button>
<button type= "button" class= "btn btn-info" > Info</button>
<button type= "button" class= "btn btn-warning" > Warning</button>
<button type= "button" class= "btn btn-danger" > Danger</button>
The same goes for the outlined buttons.
Primary
Secondary
Success
Info
Warning
Danger
<button type= "button" class= "btn btn-outline-primary" > Primary</button>
<button type= "button" class= "btn btn-outline-secondary" > Secondary</button>
<button type= "button" class= "btn btn-outline-success" > Success</button>
<button type= "button" class= "btn btn-outline-info" > Info</button>
<button type= "button" class= "btn btn-outline-warning" > Warning</button>
<button type= "button" class= "btn btn-outline-danger" > Danger</button>
Apart from the restyled Bootstrap 4 default buttons, there are two extra button classes that are colored differently depending on the color scheme. (Note: At this stage of the alpha, color schemes are not yet available).
Themed Button 1
Themed Button 2
<button type= "button" class= "btn btn-accent-1" > Themed Button 1</button>
<button type= "button" class= "btn btn-accent-2" > Themed Button 2</button>
Themed Outline Button 1
Themed Outline Button 2
<button type= "button" class= "btn btn-outline-accent-1" > Themed Outline Button 1</button>
<button type= "button" class= "btn btn-outline-accent-2" > Themed Outline Button 2</button>
Apply btn-pill
to create a button with fully rounded edges.
Primary
Primary
<button type= "button" class= "btn btn-primary btn-pill" > Primary</button>
<button type= "button" class= "btn btn-outline-primary btn-pill" > Primary</button>
Use the class btn-md
for a slightly less overwhelming large button.
.btn-lg
.btn-md
Default size
.btn-sm
<button type= "button" class= "btn btn-accent-1 btn-lg" > .btn-lg</button>
<button type= "button" class= "btn btn-accent-1 btn-md" > .btn-md</button>
<button type= "button" class= "btn btn-accent-1" > Default size</button>
<button type= "button" class= "btn btn-accent-1 btn-sm" > .btn-sm</button>
Icons can be used inside buttons to make for a more visual user experience.
<a href= "#" class= "btn btn-icon btn-danger" >
<span class= "icon icon-sm fa fa-play" ></span>
</a>
<a href= "#" class= "btn btn-icon btn-accent-2" >
<span class= "icon icon-sm fa fa-plus-circle" ></span>
<span class= "btn-icon-label" > Create New</span>
</a>