Buttons

Attach the .mui-btn class to any <button>, <a>, <input type="submit"> elements to use the MUI button style. Note that all <button> and <a> elements with the .mui-btn class will trigger a button ripple effect when clicked.

Default Buttons

<div>
  <button class="mui-btn">Button</button>
  <button class="mui-btn mui-btn--primary">Button</button>
  <button class="mui-btn mui-btn--danger">Button</button>
  <button class="mui-btn mui-btn--accent">Button</button>
</div>
<div>
  <button class="mui-btn" disabled>Button</button>
  <button class="mui-btn mui-btn--primary" disabled>Button</button>
  <button class="mui-btn mui-btn--danger" disabled>Button</button>
  <button class="mui-btn mui-btn--accent" disabled>Button</button>
</div>
View in new tab »

Flat Buttons

<div>
  <button class="mui-btn mui-btn--flat">Button</button>
  <button class="mui-btn mui-btn--flat mui-btn--primary">Button</button>
  <button class="mui-btn mui-btn--flat mui-btn--danger">Button</button>
  <button class="mui-btn mui-btn--flat mui-btn--accent">Button</button>
</div>
<div>
  <button class="mui-btn mui-btn--flat" disabled>Button</button>
  <button class="mui-btn mui-btn--flat mui-btn--primary" disabled>Button</button>
  <button class="mui-btn mui-btn--flat mui-btn--danger" disabled>Button</button>
  <button class="mui-btn mui-btn--flat mui-btn--accent" disabled>Button</button>
</div>
View in new tab »

Raised Buttons

<div>
  <button class="mui-btn mui-btn--raised">Button</button>
  <button class="mui-btn mui-btn--raised mui-btn--primary">Button</button>
  <button class="mui-btn mui-btn--raised mui-btn--danger">Button</button>
  <button class="mui-btn mui-btn--raised mui-btn--accent">Button</button>
</div>
<div>
  <button class="mui-btn mui-btn--raised" disabled>Button</button>
  <button class="mui-btn mui-btn--raised mui-btn--primary" disabled>Button</button>
  <button class="mui-btn mui-btn--raised mui-btn--danger" disabled>Button</button>
  <button class="mui-btn mui-btn--raised mui-btn--accent" disabled>Button</button>
</div>
View in new tab »

Floating Action Buttons

<div>
  <button class="mui-btn mui-btn--fab">+</button>
  <button class="mui-btn mui-btn--fab mui-btn--primary">+</button>
  <button class="mui-btn mui-btn--fab mui-btn--danger">+</button>
  <button class="mui-btn mui-btn--fab mui-btn--accent">+</button>
</div>
<div>
  <button class="mui-btn mui-btn--fab" disabled>+</button>
  <button class="mui-btn mui-btn--fab mui-btn--primary" disabled>+</button>
  <button class="mui-btn mui-btn--fab mui-btn--danger" disabled>+</button>
  <button class="mui-btn mui-btn--fab mui-btn--accent" disabled>+</button>
</div>
View in new tab »

Button sizes

<div>
  <button class="mui-btn mui-btn--small mui-btn--primary">Button</button>
  <button class="mui-btn mui-btn--small mui-btn--primary mui-btn--flat">Button</button>
  <button class="mui-btn mui-btn--small mui-btn--primary mui-btn--raised">Button</button>
  <button class="mui-btn mui-btn--small mui-btn--primary mui-btn--fab">+</button>
</div>
<div>
  <button class="mui-btn mui-btn--primary">Button</button>
  <button class="mui-btn mui-btn--primary mui-btn--flat">Button</button>
  <button class="mui-btn mui-btn--primary mui-btn--raised">Button</button>
  <button class="mui-btn mui-btn--primary mui-btn--fab">+</button>
</div>
<div>
  <button class="mui-btn mui-btn--large mui-btn--primary">Button</button>
  <button class="mui-btn mui-btn--large mui-btn--primary mui-btn--flat">Button</button>
  <button class="mui-btn mui-btn--large mui-btn--primary mui-btn--raised">Button</button>
  <button class="mui-btn mui-btn--large mui-btn--primary mui-btn--fab">+</button>
</div>
View in new tab »
« Previous Next »