EnTabs
Preview
Props
| Name | Description | Default | Control |
|---|---|---|---|
| qaId | Id that can be set for automation selectors. string | "" | |
| tabs | An array containing a collection of objects that identify the tabs. array<Tab>required | unknown | complex object |
| initialTab | The active tab to show at component mount. string | "" | |
| updateUrl | Adds a hash to the url equal to the id of the active tab. boolean | true | |
| navJustified | Sets tab navigation to full width. boolean | false | |
| hideContainer | Removes the content container to use tabs as navigation only. boolean | false |
Slots
tab-${tab.id}
No description
Variables
| Name | Type | Description |
|---|---|---|
name | unknown | — |
default
No description
Variables
| Name | Type | Description |
|---|---|---|
activeTab | unknown | — |
content-${tab.id}
No description
Variables
| Name | Type | Description |
|---|---|---|
name | unknown | — |
Events
tabchange
Tab-change event.
Methods
No methods defined.
Examples
Slots
Dynamic slots are created for each tab and tab content using the id provided for each tab in the tabs prop.
tab-{id}content-{id}