Update src/components/tab/tab.ts

Co-authored-by: Lea Verou <lea@verou.me>
This commit is contained in:
Cory LaViska
2024-11-22 12:28:58 -05:00
committed by GitHub
parent 4185f3816b
commit 01b23a3e88

View File

@@ -26,7 +26,7 @@ let id = 0;
@customElement('wa-tab')
export default class WaTab extends WebAwesomeElement {
static styles: CSSResultGroup = [componentStyles, styles];
public slot = 'nav';
public slot = 'nav'; // Auto-slot into nav slot
private readonly attrId = ++id;
private readonly componentId = `wa-tab-${this.attrId}`;