feat(tabs): expose activeTabIndex

fixes #5297
This commit is contained in:
Adrian Jost 2024-02-12 19:44:41 +00:00 committed by GitHub
parent 6b95a13ee1
commit 4bce86d18b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -63,6 +63,7 @@ export class Tabs extends LitElement {
*
* @export
*/
@property({type: Number, reflect: true})
get activeTabIndex() {
return this.tabs.findIndex((tab) => tab.active);
}