Buttons allow users to take actions, and make choices, with a single tap.
<button type="button" class="btn btn-primary m-1">
Default
</button>
<button type="button" class="btn btn-primary m-1">
Icon <i class="bi bi-star-fill"></i>
</button>
<button type="button" class="btn btn-primary btn-lg m-1">
Large
</button>
<button type="button" class="btn btn-primary btn-sm m-1">
Small
</button>
<button type="button" class="btn btn-primary m-1" disabled>
Disabled
</button>
Add .elevated-[1 to 10]
to create Elevated buttons.
<button type="button" class="btn btn-primary elevated-1">
Elevated 1
</button>
<button type="button" class="btn btn-primary elevated-10">
Elevated 10
</button>
<button type="button" class="btn btn-link m-1">
Link
</button>
<button type="button" class="btn btn-link m-1" disabled>
Disabled Link
</button>
Add .btn-outline-[color]
to create Outlined buttons.
<button type="button" class="btn btn-outline-primary m-1">
Icon <i class="bi bi-star-fill"></i>
</button>
<button type="button" class="btn btn-outline-primary btn-lg m-1">
Large
</button>
<button type="button" class="btn btn-outline-primary btn-sm m-1">
Small
</button>
<button type="button" class="btn btn-outline-primary m-1" disabled>
Disabled
</button>
Add .border-0
to Outlined buttons to create Text buttons.
<button type="button" class="btn btn-outline-primary border-0 m-1">
Icon <i class="bi bi-star-fill"></i>
</button>
<button type="button" class="btn btn-outline-primary border-0 btn-lg m-1">
Large
</button>
<button type="button" class="btn btn-outline-primary border-0 btn-sm m-1">
Small
</button>
<button type="button" class="btn btn-outline-primary border-0 m-1" disabled>
Disabled
</button>
<button type="button" class="btn btn-primary m-1">
Primary
</button>
<button type="button" class="btn btn-secondary m-1">
Secondary
</button>
<button type="button" class="btn btn-tertiary m-1">
Tertiary
</button>
<button type="button" class="btn btn-success m-1">
Success
</button>
<button type="button" class="btn btn-danger m-1">
Danger
</button>
<button type="button" class="btn btn-warning m-1">
Warning
</button>
<button type="button" class="btn btn-info m-1">
Info
</button>
<button type="button" class="btn btn-light m-1">
Light
</button>
<button type="button" class="btn btn-dark m-1">
Dark
</button>
<button type="button" class="btn btn-outline-primary m-1">
Primary
</button>
<button type="button" class="btn btn-outline-secondary m-1">
Secondary
</button>
<button type="button" class="btn btn-outline-tertiary m-1">
Tertiary
</button>
<button type="button" class="btn btn-outline-success m-1">
Success
</button>
<button type="button" class="btn btn-outline-danger m-1">
Danger
</button>
<button type="button" class="btn btn-outline-warning m-1">
Warning
</button>
<button type="button" class="btn btn-outline-info m-1">
Info
</button>
<button type="button" class="btn btn-outline-light m-1">
Light
</button>
<button type="button" class="btn btn-outline-dark m-1">
Dark
</button>
<button type="button" class="btn btn-outline-primary border-0 m-1">
Primary
</button>
<button type="button" class="btn btn-outline-secondary border-0 m-1">
Secondary
</button>
<button type="button" class="btn btn-outline-tertiary border-0 m-1">
Tertiary
</button>
<button type="button" class="btn btn-outline-success border-0 m-1">
Success
</button>
<button type="button" class="btn btn-outline-danger border-0 m-1">
Danger
</button>
<button type="button" class="btn btn-outline-warning border-0 m-1">
Warning
</button>
<button type="button" class="btn btn-outline-info border-0 m-1">
Info
</button>
<button type="button" class="btn btn-outline-light border-0 m-1">
Light
</button>
<button type="button" class="btn btn-outline-dark border-0 m-1">
Dark
</button>
<button type="button" class="btn btn-primary m-1">
Primary
<span class="ripple-surface"></span>
</button>
<button type="button" class="btn btn-success m-1">
Success
<span class="ripple-surface"></span>
</button>
<button type="button" class="btn btn-outline-tertiary m-1">
Outlined Tertiary
<span class="ripple-surface"></span>
</button>
<button type="button" class="btn btn-outline-primary border-0 m-1">
Primary
<span class="ripple-surface"></span>
</button>
// Initialize Ripple
const rippleSurface = Array.prototype.slice.call(document.querySelectorAll('.ripple-surface'))
rippleSurface.map(s => {
return new mdc.ripple.MDCRipple(s)
})
<div class="btn-group m-1">
<button type="button" class="btn btn-primary">Button</button>
<button type="button" class="btn btn-primary">Button</button>
</div>
<div class="btn-group m-1">
<button type="button" class="btn btn-primary">
Icon <i class="bi bi-star-fill"></i>
</button>
<button type="button" class="btn btn-primary">
Icon <i class="bi bi-star-fill"></i>
</button>
</div>
<div class="btn-group m-1">
<button type="button" class="btn btn-primary btn-lg">Large</button>
<button type="button" class="btn btn-primary btn-lg">Large</button>
</div>
<div class="btn-group m-1">
<button type="button" class="btn btn-primary btn-sm">Small</button>
<button type="button" class="btn btn-primary btn-sm">Small</button>
</div>
<div class="btn-group m-1">
<button type="button" class="btn btn-primary" disabled>Disabled</button>
<button type="button" class="btn btn-primary" disabled>Disabled</button>
</div>
<div class="btn-group-vertical m-1">
<button type="button" class="btn btn-primary">Button</button>
<button type="button" class="btn btn-primary">Button</button>
</div>
<div class="btn-group-vertical m-1">
<button type="button" class="btn btn-primary">
Icon <i class="bi bi-star-fill"></i>
</button>
<button type="button" class="btn btn-primary">
Icon <i class="bi bi-star-fill"></i>
</button>
</div>
<div class="btn-group-vertical m-1">
<button type="button" class="btn btn-primary btn-lg">Large</button>
<button type="button" class="btn btn-primary btn-lg">Large</button>
</div>
<div class="btn-group-vertical m-1">
<button type="button" class="btn btn-primary btn-sm">Small</button>
<button type="button" class="btn btn-primary btn-sm">Small</button>
</div>
<div class="btn-group-vertical m-1">
<button type="button" class="btn btn-primary" disabled>Disabled</button>
<button type="button" class="btn btn-primary" disabled>Disabled</button>
</div>