Tab Bar
A navigation structure that allows users to switch between different views or sections of content.
When to Use
- To organize and access multiple content areas, one at a time.
Usage
js
import { Tab, TabsBar } from '@youcan/alto';
1
js
<TabsBar>
<Tab v-for="(tab, index) in tabs"
:key="index"
:label="tab.label"
:active="activeTab === index"
@click="setActiveTab(index)" />
</TabsBar>
1
2
3
4
5
6
7
2
3
4
5
6
7