# tabs
The **** component provides a tab container.
## Permission List
None
## Child Component
A **** can wrap at most one **<[tab-bar](js-components-container-tab-bar.md)\>** and at most one **<[tab-content](js-components-container-tab-content.md)\>**.
## Attribute
In addition to the attributes in [Universal Attributes](js-components-common-attributes.md), the following attributes are supported.
Name
Type
Default Value
Mandatory
Description
index
number
0
No
Index of the active tab.
vertical
boolean
false
No
Whether the tab is vertical. Available values are as follows:
false: The <tab-bar> and <tab-content> are arranged vertically.
true: The <tab-bar> and <tab-content> are arranged horizontally.
## Style
Styles in [Universal Styles](js-components-common-styles.md) are supported.
## Event
In addition to the events in [Universal Events](js-components-common-events.md), the following events are supported.
Name
Parameter
Description
change
{ index: indexValue }
Triggered upon tab switching.
NOTE:
This event is not triggered when the index value is dynamically changed.