Migrating from Tangram Tabs
This page documents what's different if you're adopting tg2-tabstheme="tg-light"
Structure
tg2-tabtg-tabtg-tab-headingtg-tab-contentlabel
<!-- Before: three elements per tab -->
<tg-tabs [(selected)]="selectedIndex">
<tg-tab>
<tg-tab-heading>Details</tg-tab-heading>
<tg-tab-content>Panel content</tg-tab-content>
</tg-tab>
</tg-tabs>
<!-- After: one element per tab, content projected directly -->
<tg2-tabs [(selected)]="selectedIndex">
<tg2-tab label="Details">Panel content</tg2-tab>
</tg2-tabs>Server-rendered panel content
tg-tabstg2-tabs
<!-- Before: only the active pane ever reaches server-rendered HTML -->
<!-- After: every pane renders eagerly and is indexable, hidden behind [inert] when inactive -->