メインコンテンツまでスキップ
Version: v6

ion-tab

shadow

Contents

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

Note: This component should only be used with vanilla or Stencil JavaScript projects. For Angular, React, and Vue apps you do not need to use ion-tab to declare your tab components.

Tabの設定の詳細については、tabs documentationを参照してください。

Properties

component

DescriptionThe component to display inside of the tab.
Attributecomponent
TypeFunction | HTMLElement | null | string | undefined
Defaultundefined

tab

DescriptionA 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.
Attributetab
Typestring
Defaultundefined

Methods

setActive

DescriptionSet the active component for the tab
SignaturesetActive() => Promise<void>