Easy Tutorial
❮ Ionic Form Input Ionic Select ❯

Ionic Buttons

Buttons are an integral part of mobile apps, and different styles of apps require different button designs.

By default, buttons are displayed with the style: display: inline-block.

<button class="button">
  Default
</button>

<button class="button button-light">
  button-light
</button>

<button class="button button-stable">
  button-stable
</button>

<button class="button button-positive">
  button-positive
</button>

<button class="button button-calm">
  button-calm
</button>

<button class="button button-balanced">
  button-balanced
</button>

<button class="button button-energized">
  button-energized
</button>

<button class="button button-assertive">
  button-assertive
</button>

<button class="button button-royal">
  button-royal
</button>

<button class="button button-dark">
  button-dark
</button>

Try it »

The button-block style displays as: display: block, which completely fills the width of the parent element, including padding properties.

<button class="button button-block button-positive">
  Block Button
</button>

Try it »

Using the button-full class, you can make the button display at full width without padding.

<button class="button button-full button-positive">
  Full Width Block Button
</button>

Try it »


Buttons of Different Sizes

button-large sets a large button, and button-small sets a small button.

<button class="button button-small button-assertive">
  Small Button
</button>
<button class="button button-large button-positive">
  Large Button
</button>

Try it »


Buttons Without Background

button-outline sets the background to transparent.

<button class="button button-outline button-positive">
  Outlined Button
</button>

Try it »


Buttons Without Background and Border

button-clear sets the button background to transparent and removes the border.

<button class="button button-clear button-positive">
  Clear Button
</button>

Try it »


Icon Buttons

We can add icons to buttons.

<button class="button icon-left ion-home">Home</button>

<button class="button icon-left ion-star button-positive">Favorites</button>

<a class="button icon-right ion-chevron-right button-calm">Learn More</a>

<a class="button icon-left ion-chevron-left button-clear button-dark">Back</a>

<button class="button icon ion-gear-a"></button>

<a class="button button-icon icon ion-settings"></a>

<a class="button button-outline icon-right ion-navicon button-balanced">Reorder</a>

[Try it »](../try/tryit.php?filename=ionic_bar-header_icon)

---

## Adding Buttons to Headers/Footers

Buttons can be added to headers/footers, and their styles are set based on the header/footer, so you don't need to add extra styles for the buttons.

<div class="bar bar-header"> <button class="button icon ion-navicon"></button> <h1 class="title">Header Buttons</h1> <button class="button">Edit</button> </div>


[Try it »](../try/tryit.php?filename=ionic_bar-header)

The `button-clear` class can set header/footer buttons with no background and borders.

<div class="bar bar-header"> <button class="button button-icon icon ion-navicon"></button> <div class="h1 title">Header Buttons</div> <button class="button button-clear button-positive">Edit</button> </div>


[Try it »](../try/tryit.php?filename=ionic_bar-header_button-clear)

---

## Button Bar

<div class="button-bar"> <a class="button">First</a> <a class="button">Second</a> <a class="button">Third</a> </div> ```

Try it »

❮ Ionic Form Input Ionic Select ❯