There are 3 main button types described in material design. Raised Button, Floating circular action button & Flat buttons.

Raised Button

The raised button is a standard button that signify actions and seek to give depth to a mostly flat page. The floating circular action button is meant for very important functions. Flat buttons are usually used within elements that already have depth like cards or modals.

Floating Button

Raised

Default

Dropdown

Submit Button

When you use a button to submit a form, instead of using a input tag, use a button tag with a type submit

Larger Button

This button has a larger height for buttons that need more attention.

Fixed Action Button

If you want a fixed floating action button, you can add multiple actions that will appear on hover. Our demo is in the bottom righthand corner of the page.

<div class="fixed-action-btn">  <a class="btn-floating btn-large red">    <i class="large mdi-editor-mode-edit"></i>  </a>  <ul>    <li><a class="btn-floating red"><i class="large mdi-editor-insert-chart"></i></a>    </li>    <li><a class="btn-floating yellow darken-1"><i class="large mdi-editor-format-quote"></i></a>    </li>    <li><a class="btn-floating green"><i class="large mdi-editor-publish"></i></a>    </li>    <li><a class="btn-floating blue"><i class="large mdi-editor-attach-file"></i></a>    </li>  </ul></div>        

You can also open the Fixed Action Button Menu programatically, the below code will make your FAB Menu open:

  $('.fixed-action-btn').openFAB();          

You can also close them programatically:

  $('.fixed-action-btn').closeFAB();        

Horizontal FAB

Creating a horizontal FAB is easy! Just add the class horizontalto the FAB.

<div class="fixed-action-btn horizontal" style="position: absolute; display: inline-block; right: 19px;">  <a class="btn-floating btn-large red">    <i class="mdi-social-notifications-none"></i>  </a>  <ul>  <li><a class="btn-floating red"><i class="large mdi-editor-insert-chart"></i></a>  </li>  <li><a class="btn-floating yellow darken-1"><i class="large mdi-editor-format-quote"></i></a>  </li>  <li><a class="btn-floating green"><i class="large mdi-editor-publish"></i></a>  </li>  <li><a class="btn-floating blue"><i class="large mdi-editor-attach-file"></i></a>  </li></ul></div>                        

Click-only FAB

If you want to disable the hover behaviour, and instead toggle the FAB menu when the user clicks on the large button (works great on mobile!), just add the click-to-toggleclass to the FAB.

<div class="fixed-action-btn horizontal click-to-toggle" style="position: absolute; right: 19px;">    <a class="btn-floating btn-large red">      <i class="mdi-navigation-menu"></i>    </a>    <ul>    <li><a class="btn-floating red"><i class="large mdi-editor-insert-chart"></i></a>    </li>    <li><a class="btn-floating yellow darken-1"><i class="large mdi-editor-format-quote"></i></a>    </li>    <li><a class="btn-floating green"><i class="large mdi-editor-publish"></i></a>    </li>    <li><a class="btn-floating blue"><i class="large mdi-editor-attach-file"></i></a>    </li>    </ul>  </div>

Disabled Button

This style can be applied to all button types.