1# tab-bar 2 3> **NOTE** 4> 5> This component is supported since API version 4. Updates will be marked with a superscript to indicate their earliest API version. 6 7**\<tab-bar>** is a child component of **[\<tabs>](js-components-container-tabs.md)** and is used to provide the area to display tab labels. Its child components are horizontally arranged. 8 9## Required Permissions 10 11None 12 13 14## Child Components 15 16Supported 17 18 19## Attributes 20 21In addition to the [universal attributes](js-components-common-attributes.md), the following attributes are supported. 22 23| Name| Type| Default Value| Mandatory| Description| 24| -------- | -------- | -------- | -------- | -------- | 25| mode | string | scrollable | No| Extensibility of the component width. Available values are as follows:<br>- **scrollable**: The width of a child component is the configured width. When the total width of all child components (including the margins) is greater than the tab-bar width, the child components can scroll horizontally.<br>- **fixed**: The width of a child component equals the tab-bar width divided by the number of child components.| 26 27 28## Styles 29 30The [universal styles](js-components-common-styles.md) are supported. 31 32 33## Events 34 35The [universal events](js-components-common-events.md) are supported. 36 37 38## Methods 39 40The [universal methods](js-components-common-methods.md) are supported. 41 42 43## Example 44 45For details, see [Example in tabs](js-components-container-tabs.md#example). 46