Buttons
Use Paper Dashboard's custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.
Examples
Paper Dashboardhas changed the predefined button styles from Bootstrap, each serving its own semantic purpose, with a few extras thrown in for more control.
<button type="button" class="btn btn-primary">Primary</button>
<button type="button" class="btn btn-info">Info</button>
<button type="button" class="btn btn-success">Success</button>
<button type="button" class="btn btn-danger">Danger</button>
<button type="button" class="btn btn-warning">Warning</button>
<button type="button" class="btn btn-default">Default</button>
Style buttons
<button class="btn btn-primary">Default</button>
<button class="btn btn-primary btn-round">Round</button>
<button class="btn btn-primary btn-fab btn-icon btn-round">
<i class="fa fa-heart"></i>
</button>
<button class="btn btn-outline-primary btn-round">
<i class="fa fa-heart"></i> With Icon
</button>
<button class="btn btn-primary btn-link">
link
</button>
<button class="btn btn-primary btn-neutral">Neutral</button>
Sizes
Fancy larger or smaller buttons? Add
.btn-lg
or
.btn-sm
for additional sizes.
<button class="btn btn-primary btn-sm">Small</button>
<button class="btn btn-primary">Regular</button>
<button class="btn btn-primary btn-lg">Large</button>
Social Buttons
Default
Neutral
<div class="row">
<div class="col-md-4 col-sm-5">
<p class="category">Default</p>
<button class="btn btn-twitter">
<i class="fa fa-twitter"></i> Connect with Twitter
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<p class="category"> </p>
<button class="btn btn-icon btn-twitter">
<i class="fa fa-twitter"></i>
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<p class="category"> </p>
<button class="btn btn-icon btn-round btn-twitter">
<i class="fa fa-twitter"></i>
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<p class="category">Neutral</p>
<button class="btn btn-icon btn-neutral btn-twitter">
<i class="fa fa-twitter"></i>
</button>
</div>
<div class="col-md-3 col-sm-4">
<p class="category"> </p>
<button class="btn btn-neutral btn-twitter">
<i class="fa fa-twitter"></i> Connect with Twitter
</button>
</div>
</div>
<br/>
<div class="row">
<div class="col-md-4 col-sm-5">
<button class="btn btn-facebook">
<i class="fa fa-facebook-square"></i> Share · 2.2k
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-facebook">
<i class="fa fa-facebook-f"> </i>
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-round btn-facebook">
<i class="fa fa-facebook-f"> </i>
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-neutral btn-facebook">
<i class="fa fa-facebook-square"> </i>
</button>
</div>
<div class="col-md-3 col-sm-4">
<button class="btn btn-neutral btn-facebook">
<i class="fa fa-facebook-square"></i> Share · 2.2k
</button>
</div>
</div>
<br/>
<div class="row">
<div class="col-md-4 col-sm-5">
<button class="btn btn-google">
<i class="fa fa-google-plus"></i> Share on Google+
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-google">
<i class="fa fa-google-plus"> </i>
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-round btn-google">
<i class="fa fa-google-plus"> </i>
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-neutral btn-google">
<i class="fa fa-google-plus"> </i>
</button>
</div>
<div class="col-md-3 col-sm-4">
<button class="btn btn-neutral btn-google">
<i class="fa fa-google-plus"></i> Share on Google+
</button>
</div>
</div>
<br/>
<div class="row">
<div class="col-md-4 col-sm-5">
<button class="btn btn-linkedin">
<i class="fa fa-linkedin"></i> Connect with Linkedin
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-linkedin">
<i class="fa fa-linkedin"></i>
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-round btn-linkedin">
<i class="fa fa-linkedin"></i>
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-neutral btn-linkedin">
<i class="fa fa-linkedin"></i>
</button>
</div>
<div class="col-md-3 col-sm-4">
<button class="btn btn-neutral btn-linkedin">
<i class="fa fa-linkedin"></i> Connect with Linkedin
</button>
</div>
</div>
<br/>
<div class="row">
<div class="col-md-4 col-sm-5">
<button class="btn btn-pinterest">
<i class="fa fa-pinterest"></i> Pint it · 212
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-pinterest">
<i class="fa fa-pinterest"></i>
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-round btn-pinterest">
<i class="fa fa-pinterest"></i>
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-neutral btn-pinterest">
<i class="fa fa-pinterest"></i>
</button>
</div>
<div class="col-md-3 col-sm-4">
<button class="btn btn-neutral btn-pinterest">
<i class="fa fa-pinterest"></i> Pint it · 212
</button>
</div>
</div>
<br/>
<div class="row">
<div class="col-md-4 col-sm-5">
<button class="btn btn-youtube">
<i class="fa fa-youtube"></i> View on Youtube
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-youtube">
<i class="fa fa-youtube"> </i>
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-round btn-youtube">
<i class="fa fa-youtube"> </i>
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-neutral btn-youtube">
<i class="fa fa-youtube"> </i>
</button>
</div>
<div class="col-md-3 col-sm-4">
<button class="btn btn-neutral btn-youtube">
<i class="fa fa-youtube"></i> View on Youtube
</button>
</div>
</div>
<br/>
<div class="row">
<div class="col-md-4 col-sm-5">
<button class="btn btn-tumblr">
<i class="fa fa-tumblr-square"></i> Repost
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-tumblr">
<i class="fa fa-tumblr"> </i>
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-round btn-tumblr">
<i class="fa fa-tumblr"> </i>
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-neutral btn-tumblr">
<i class="fa fa-tumblr-square"> </i>
</button>
</div>
<div class="col-md-3 col-sm-4">
<button class="btn btn-neutral btn-tumblr">
<i class="fa fa-tumblr-square"></i> Repost
</button>
</div>
</div>
<br/>
<div class="row">
<div class="col-md-4 col-sm-5">
<button class="btn btn-github">
<i class="fa fa-github"></i> Connect with Github
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-github">
<i class="fa fa-github"></i>
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-round btn-github">
<i class="fa fa-github"></i>
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-neutral btn-github">
<i class="fa fa-github"></i>
</button>
</div>
<div class="col-md-3 col-sm-4">
<button class="btn btn-neutral btn-github">
<i class="fa fa-github"></i> Connect with Github
</button>
</div>
</div>
<br/>
<div class="row">
<div class="col-md-4 col-sm-5">
<button class="btn btn-behance">
<i class="fa fa-behance-square"></i> Follow us
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-behance">
<i class="fa fa-behance"></i>
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-round btn-behance">
<i class="fa fa-behance"></i>
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-neutral btn-behance">
<i class="fa fa-behance"></i>
</button>
</div>
<div class="col-md-3 col-sm-4">
<button class="btn btn-neutral btn-behance">
<i class="fa fa-behance-square"></i> Follow us
</button>
</div>
</div>
<br/>
<div class="row">
<div class="col-md-4 col-sm-5">
<button class="btn btn-dribbble">
<i class="fa fa-dribbble"></i> Find us on Dribble
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-dribbble">
<i class="fa fa-dribbble"></i>
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-round btn-dribbble">
<i class="fa fa-dribbble"></i>
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-neutral btn-dribbble">
<i class="fa fa-dribbble"></i>
</button>
</div>
<div class="col-md-3 col-sm-4">
<button class="btn btn-neutral btn-dribbble">
<i class="fa fa-dribbble"></i> Find us on Dribble
</button>
</div>
</div>
<br/>
<div class="row">
<div class="col-md-4 col-sm-5">
<button class="btn btn-reddit">
<i class="fa fa-reddit"></i> Repost · 232
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-reddit">
<i class="fa fa-reddit"></i>
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-round btn-reddit">
<i class="fa fa-reddit"></i>
</button>
</div>
<div class="col-md-1 col-sm-1 col-3">
<button class="btn btn-icon btn-neutral btn-reddit">
<i class="fa fa-reddit"></i>
</button>
</div>
<div class="col-md-3 col-sm-4">
<button class="btn btn-neutral btn-reddit">
<i class="fa fa-reddit"></i> Repost · 232
</button>
</div>
</div>
Disabled state
Make buttons look inactive by adding the
disabled
boolean attribute to any
<button>
element.
<button type="button" class="btn btn-lg btn-primary" disabled>Primary button</button>
<button type="button" class="btn btn-secondary btn-lg" disabled>Button</button>
Disabled buttons using the
<a>
element behave a bit different:
-
<a>
s don’t support thedisabled
attribute, so you must add the.disabled
class to make it visually appear disabled. - Some future-friendly styles are included to disable all
pointer-events
on anchor buttons. In browsers which support that property, you won’t see the disabled cursor at all.
<a href="#" class="btn btn-primary btn-lg disabled" role="button" aria-disabled="true">Primary link</a>
<a href="#" class="btn btn-secondary btn-lg disabled" role="button" aria-disabled="true">Link</a>
If you want to see more examples and properties please check the official Bootstrap Documentation.