I recently started using Ionic 4 and I'm trying to create scrollable tabs in Ionic 4. However, when I include multiple tabs as shown in the code below, they become compressed and appear within the same viewing space.
<ion-tab-bar slot="top">
<ion-tab-button tab="account">
<ion-icon name="person"></ion-icon>
<ion-label>Label1</ion-label>
</ion-tab-button>
<ion-tab-button tab="contact">
<ion-icon name="call"></ion-icon>
<ion-label>Label2</ion-label>
</ion-tab-button>
<ion-tab-button tab="settings">
<ion-icon name="settings"></ion-icon>
<ion-label>Label3</ion-label>
</ion-tab-button>
<ion-tab-button tab="account">
<ion-icon name="person"></ion-icon>
<ion-label>Label1</ion-label>
</ion-tab-button>
<ion-tab-button tab="contact">
<ion-icon name="call"></ion-icon>
<ion-label>Label2</ion-label>
</ion-tab-button>
<ion-tab-button tab="settings">
<ion-icon name="settings"></ion-icon>
<ion-label>Label3</ion-label>
</ion-tab-button>
<ion-tab-button tab="account">
<ion-icon name="person"></ion-icon>
<ion-label>Label1</ion-label>
</ion-tab-button>
<ion-tab-button tab="contact">
<ion-icon name="call"></ion-icon>
<ion-label>Label2</ion-label>
</ion-tab-button>
<ion-tab-button tab="settings">
<ion-icon name="settings"></ion-icon>
<ion-label>Label3</ion-label>
</ion-tab-button>
</ion-tab-bar>
Here's how the above code appears:
https://i.sstatic.net/NXa4w.png
I would appreciate any assistance on this matter.