The ld-tab component is a subcomponent for ld-tabs.
Please refer to the ld-tabs documentation for usage examples.
| Property | Attribute | Description | Type | Default | 
|---|---|---|---|---|
disabled | 
disabled | 
Disables the tab. | boolean | 
undefined | 
key | 
key | 
for tracking the node's identity when working with lists | string | number | 
undefined | 
ldTabindex | 
ld-tabindex | 
Tab index of the tab. | number | 
undefined | 
ref | 
ref | 
reference to component | any | 
undefined | 
selected | 
selected | 
If present, this boolean attribute indicates that the tab is selected. | boolean | 
undefined | 
| Event | Description | Type | 
|---|---|---|
ldtabselect | 
Emitted with the id of the selected tab. | CustomEvent<undefined> | 
focusInner() => Promise<void> #Focuses the tab
Type: Promise<void>
select() => Promise<void> #Set selected tab to a certain index
Type: Promise<void>
| Part | Description | 
|---|---|
"button" | 
Actual button element | 
"content" | 
Element wrapping the slot | 
"focusable" | 
|
"spacer" | 
Both spacer elements | 
"spacer-left" | 
Left spacer element | 
"spacer-right" | 
Right spacer element |