A tab button is a UI component that is placed inside of a tab bar. The tab button can specify the layout of the icon and label and connect to a tab view.
<ion-tabs><!-- Tab bar --><ion-tab-barslot="bottom"><ion-tab-buttontab="schedule"><ion-iconname="calendar"aria-hidden="true"></ion-icon><ion-label>Schedule</ion-label></ion-tab-button><ion-tab-buttontab="speakers"><ion-iconname="person-circle"aria-hidden="true"></ion-icon><ion-label>Speakers</ion-label></ion-tab-button><ion-tab-buttontab="map"><ion-iconname="map"aria-hidden="true"></ion-icon><ion-label>Map</ion-label></ion-tab-button><ion-tab-buttontab="about"><ion-iconname="information-circle"aria-hidden="true"></ion-icon><ion-label>About</ion-label></ion-tab-button></ion-tab-bar></ion-tabs>
Properties
disabled
Description
If true, the user cannot interact with the tab button.
Attribute
disabled
Type
boolean
Default
false
download
Description
This attribute instructs browsers to download a URL instead of navigating to it, so the user will be prompted to save it as a local file. If the attribute has a value, it is used as the pre-filled file name in the Save prompt (the user can still change the file name if they want).
Attribute
download
Type
string | undefined
Default
undefined
href
Description
Contains a URL or a URL fragment that the hyperlink points to. If this property is set, an anchor tag will be rendered.
Attribute
href
Type
string | undefined
Default
undefined
layout
Description
Set the layout of the text and icon in the tab bar. It defaults to "icon-top".