Buttons

Use Material Kit's custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.

Examples

Material Kit has 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-round">
  <i class="material-icons">favorite</i> With Icon
</button>
<button class="btn btn-primary btn-fab btn-fab-mini btn-round">
  <i class="material-icons">favorite</i>
</button>
<button class="btn btn-primary btn-link">Simple</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 - Pro Component

<div class="row">
   <div class="col-md-3 social-buttons-demo">
    <button class="btn btn-social btn-fill btn-twitter">
      <i class="fa fa-twitter"></i> Connect
    </button><br>
    <button class="btn btn-social btn-fill btn-facebook">
      <i class="fa fa-facebook-square"></i> Share &middot; 2.2k
    </button><br>
    <button class="btn btn-social btn-fill btn-google">
      <i class="fa fa-google-square"></i> Share on Google+
    </button><br>
    <button class="btn btn-social btn-fill btn-linkedin">
      <i class="fa fa-linkedin-square"></i> Connect
    </button><br>
    <button class="btn btn-social btn-fill btn-pinterest">
      <i class="fa fa-pinterest"></i> Pint it &middot; 212
    </button><br>
    <button class="btn btn-social btn-fill btn-youtube">
      <i class="fa fa-youtube-play"></i> View
    </button><br>
    <button class="btn btn-social btn-fill btn-tumblr">
      <i class="fa fa-tumblr-square"></i> Repost
    </button><br>
    <button class="btn btn-social btn-fill btn-github">
      <i class="fa fa-github"></i> Connect
    </button><br>
    <button class="btn btn-social btn-fill btn-behance">
      <i class="fa fa-behance-square"></i> Follow us
    </button><br>
    <button class="btn btn-social btn-fill btn-dribbble">
      <i class="fa fa-dribbble"></i> Find us
    </button><br>
    <button class="btn btn-social btn-fill btn-reddit">
      <i class="fa fa-reddit"></i> Repost &middot; 232
    </button><br>
   </div>
   <div class="col-md-1 social-buttons-demo">
    <button class="btn btn-social btn-just-icon btn-twitter">
      <i class="fa fa-twitter"></i>
    </button><br>
    <button class="btn btn-social btn-just-icon  btn-facebook">
      <i class="fa fa-facebook"> </i>
    </button><br>
    <button class="btn btn-social btn-just-icon  btn-google">
      <i class="fa fa-google"> </i>
    </button><br>
    <button class="btn btn-social btn-just-icon  btn-linkedin">
      <i class="fa fa-linkedin"></i>
    </button><br>
    <button class="btn btn-social btn-just-icon  btn-pinterest">
      <i class="fa fa-pinterest"></i>
    </button><br>
    <button class="btn btn-social btn-just-icon  btn-youtube">
      <i class="fa fa-youtube"> </i>
    </button><br>
    <button class="btn btn-social btn-just-icon  btn-tumblr">
      <i class="fa fa-tumblr"> </i>
    </button><br>
    <button class="btn btn-social btn-just-icon  btn-github">
      <i class="fa fa-github"></i>
    </button><br>
    <button class="btn btn-social btn-just-icon  btn-behance">
      <i class="fa fa-behance"></i>
    </button><br>
    <button class="btn btn-social btn-just-icon  btn-dribbble">
      <i class="fa fa-dribbble"></i>
    </button><br>
    <button class="btn btn-social btn-just-icon  btn-reddit">
      <i class="fa fa-reddit"></i>
    </button><br>
   </div>
   <div class="col-md-1 social-buttons-demo">
    <button class="btn btn-social btn-just-icon btn-round btn-twitter">
      <i class="fa fa-twitter"></i>
    </button><br>
    <button class="btn btn-social btn-just-icon btn-round btn-facebook">
      <i class="fa fa-facebook"> </i>
    </button><br>
    <button class="btn btn-social btn-just-icon btn-round btn-google">
      <i class="fa fa-google"> </i>
    </button><br>
    <button class="btn btn-social btn-just-icon btn-round btn-linkedin">
      <i class="fa fa-linkedin"></i>
    </button><br>
    <button class="btn btn-social btn-just-icon btn-round btn-pinterest">
      <i class="fa fa-pinterest"></i>
    </button><br>
    <button class="btn btn-social btn-just-icon btn-round btn-youtube">
      <i class="fa fa-youtube"> </i>
    </button><br>
    <button class="btn btn-social btn-just-icon btn-round btn-tumblr">
      <i class="fa fa-tumblr"> </i>
    </button><br>
    <button class="btn btn-social btn-just-icon btn-round btn-github">
      <i class="fa fa-github"></i>
    </button><br>
    <button class="btn btn-social btn-just-icon btn-round btn-behance">
      <i class="fa fa-behance"></i>
    </button><br>
    <button class="btn btn-social btn-just-icon btn-round btn-dribbble">
      <i class="fa fa-dribbble"></i>
    </button><br>
    <button class="btn btn-social btn-just-icon btn-round btn-reddit">
      <i class="fa fa-reddit"></i>
    </button><br>
   </div>
   <div class="col-md-1 social-buttons-demo">
    <button class="btn btn-social btn-link btn-twitter">
      <i class="fa fa-twitter"></i>
    </button><br>
    <button class="btn btn-social btn-link btn-facebook">
      <i class="fa fa-facebook-square"> </i>
    </button><br>
    <button class="btn btn-social btn-link btn-google">
      <i class="fa fa-google"> </i>
    </button><br>
    <button class="btn btn-social btn-link btn-linkedin">
      <i class="fa fa-linkedin-square"></i>
    </button><br>
    <button class="btn btn-social btn-link btn-pinterest">
      <i class="fa fa-pinterest"></i>
    </button><br>
    <button class="btn btn-social btn-link btn-youtube">
      <i class="fa fa-youtube"> </i>
    </button><br>
    <button class="btn btn-social btn-link btn-tumblr">
      <i class="fa fa-tumblr-square"> </i>
    </button><br>
    <button class="btn btn-social btn-link btn-github">
      <i class="fa fa-github"></i>
    </button><br>
    <button class="btn btn-social btn-link btn-behance">
      <i class="fa fa-behance"></i>
    </button><br>
    <button class="btn btn-social btn-link btn-dribbble">
      <i class="fa fa-dribbble"></i>
    </button><br>
    <button class="btn btn-social btn-link btn-reddit">
      <i class="fa fa-reddit"></i>
    </button><br>
   </div>
   <div class="col-md-3 social-buttons-demo">
    <button class="btn btn-social btn-link btn-twitter">
      <i class="fa fa-twitter"></i> Connect
    </button><br>
    <button class="btn btn-social btn-link btn-facebook">
      <i class="fa fa-facebook-square"></i> Share &middot; 2.2k
    </button><br>
    <button class="btn btn-social btn-link btn-google">
      <i class="fa fa-google-square"></i> Share on Google+
    </button><br>
    <button class="btn btn-social btn-link btn-linkedin">
      <i class="fa fa-linkedin-square"></i> Connect
    </button><br>
    <button class="btn btn-social btn-link btn-pinterest">
      <i class="fa fa-pinterest"></i> Pint it &middot; 212
    </button><br>
    <button class="btn btn-social btn-link btn-youtube">
      <i class="fa fa-youtube-play"></i> View
    </button><br>
    <button class="btn btn-social btn-link btn-tumblr">
      <i class="fa fa-tumblr-square"></i> Repost
    </button><br>
    <button class="btn btn-social btn-link btn-github">
      <i class="fa fa-github"></i> Connect
    </button><br>
    <button class="btn btn-social btn-link btn-behance">
      <i class="fa fa-behance-square"></i> Follow us
    </button><br>
    <button class="btn btn-social btn-link btn-dribbble">
      <i class="fa fa-dribbble"></i> Find us
    </button><br>
    <button class="btn btn-social btn-link btn-reddit">
      <i class="fa fa-reddit"></i> Repost &middot; 232
    </button><br>
   </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 the disabled 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.