ion-tab
The tab component is a child component of tabs. Each tab can contain a top level navigation stack for an app or a single view. An app can have many tabs, all with their own independent navigation.
note
Angular, React, and Vue can only use this component when the ion-tabs
component is configured for basic usage. When setting up tabs with routing, the ion-tab
component cannot be used.
In JavaScript, this component can be used with the ion-tabs
component configured for either basic usage or usage with router.
See the tabs documentation for more details on configuring tabs.
Propertiesâ
componentâ
Description | The component to display inside of the tab. |
Attribute | component |
Type | Function īŊ HTMLElement īŊ null īŊ string īŊ undefined |
Default | undefined |
tabâ
Description | A tab id must be provided for each ion-tab . It's used internally to reference the selected tab or by the router to switch between them. |
Attribute | tab |
Type | string |
Default | undefined |
Eventsâ
No events available for this component.
Methodsâ
setActiveâ
Description | Set the active component for the tab |
Signature | setActive() => Promise<void> |
CSS Shadow Partsâ
No CSS shadow parts available for this component.
CSS Custom Propertiesâ
No CSS custom properties available for this component.
Slotsâ
No slots available for this component.