Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ionic Buttons

ionic Buttons

Buttons are an indispensable part of mobile apps; apps of different styles need different button styles.

By default, the button display style is:display: inline-block。





















Try it »

The button-block style button displays as:display: block, it completely fills the width of the parent element and includes the padding property.



Try it »

Using the button-full class makes the button display at full width without padding.



Try it »


Buttons of Different Sizes

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




Try it »


Buttons Without Background

button-outline sets the background to transparent.



Try it »


Buttons Without Background or Border

button-clear sets the button background to transparent with no border.



Try it »


Icon Buttons

We can add icons to buttons.






Learn More

Back





Reorder

Try it »


Adding Buttons to the Header/Footer

Buttons can be added to the header/footer, and their style is set according to the header/footer, so you don't need to add extra styles to the buttons.


Header Buttons

Try it »

The button-clear class can set header/footer buttons with no background or border.


Header Buttons

Try it »


Button Bar

We can use the button-bar class to set up a button bar. In the following example, we add a button bar to the header and content.



Try it »