| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| labels | TabBarLabel[] |
[] |
Y | Tab content group. |
| active | number |
0 |
N | Index value of active tab. |
| line | boolean |
false |
N | Whether to show bottom line. |
| lineW | number |
4 |
N | Line width ratio of current tab width. |
| love | boolean |
false |
N | Whether to enable care version. |
| injClass | string |
'' |
N | Inject CSS class for TabBar wrapper. |
| tabInjClass | string |
'' |
N | Inject CSS class for single tab. |
| activeTabInjClass | string |
'' |
N | Inject CSS class for active tab. |
| activeInjClass | string |
'' |
N | Inject CSS class for bottom line. |
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
| text | string |
'' |
N | Tab text. |
| icon | Icon |
- | N | Tab icon. |
| activeIcon | Icon |
- | N | Active tab icon. |
| Name | Type | Parameters | Description |
|---|---|---|---|
| onchange | (active: number) => void |
active - Active TabBar index |
Triggered when TabBar is clicked. |