ionic tab (tabs)
ionic tabs are horizontally arranged buttons or links used to switch between pages for navigation. They can combine text and icons, and are a popular navigation method on mobile devices.
The following tab container uses the tabs class, and each tab uses the tab-item class. By default, tabs are text-only and have no icons.
Example
By default, the tab color is default. You can set the following different color styles: tabs-default, tabs-light, tabs-stable, tabs-positive, tabs-calm, tabs-balanced, tabs-energized, tabs-assertive, tabs-royal, tabs-dark.
To hide the tab bar, use the tabs-item-hide class.
Icon tabs
Add the tabs-icon-only class after the tabs class to set icon-only tabs.
Top icon + text tabs
Add the tabs-icon-top class after the tabs class to set top icon + text tabs.
Left icon + text tabs
Add the tabs-icon-left class after the tabs class to set left icon + text tabs.
Striped tabs
You can add tabs-striped to an element with the tabs style name to achieve Android-style tabs. You can also add tabs-top to place the tabs at the top of the page.
Striped tab colors can be controlled via tabs-background-{color} and tabs-color-{color}, where {color} can be: default, light, stable, positive, calm, balanced, energized, assertive, royal, or dark.
Note: to set a header title on the tabs, you need to use the has-tabs-top class.
The running result is as follows: