There are several types of button in Ionic Framework, and we can use them according to our need. Ionic framework provides different classes to their components. For example for button their is button class. And the main class for all the button types is button.
We will add this code between <ion-content> tag.
Ionic also provide nine different colour classes, to implement these colour on button we only need to give sub-class after main class of button.
<button class="button button-light">
<button class="button button-stable">
<button class="button button-positive">
<button class="button button-calm">
<button class="button button-balanced">
<button class="button button-energized">
<button class="button button-assertive">
<button class="button button-royal">
<button class="button button-dark">
Ionic block button takes 100% width of its parent's width with padding. Implementing block button to a button will also set display: block to CSS properties. And another button mean default buttons will set display: inline-block. You may use this button when you need to display this button on full width of screen. As you will saw in FaceBook signIn page.
<button class="button button-block button-positive">
Full Width Block Button
If you want to add button without left and right borders with display: block; than you need Full Width Block Button. This class of button will remove left and right borders from button. Additionally button's parent element does not have padding applied. This style for button is useful when you need to display your button across the entire width of screen.
<button class="button button-full button-positive">
Full Width Block Button
Similarly you can achieve different sizes of button using "button-large", "button-small" classes. To make a transparent button you might use "button-outline" class. This class will remove background colour from button and put an outline on button.
<button class="button button-outline button-positive">
You can also apply several colours to outline button by using colour class.
You can also display icons on button, you can add icons by using built in Ionic icons or you may also add your custom icons.
<i class="icon ion-loading-c"></i> Loading...
<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>