Migrating from tgButton2
Replace the tgButton2tg2ButtonTg2ButtonComponentTgButton2Component
Selector
<!-- Before -->
<button tgButton2>Button</button>
<!-- After -->
<button tg2Button>Button</button>Variant
The separate boolean flags ([transparent][tgStyle]tg2Style
<!-- Before -->
<button tgButton2 [transparent]="true">Button</button>
<!-- After -->
<button tg2Button tg2Style="transparent">Button</button>Size
The [compact]size[autoCompact]size="compact"
<!-- Before -->
<button tgButton2 [compact]="true">Button</button>
<!-- After -->
<button tg2Button size="compact">Button</button>Shape
The shape[transparent][tag]tgButton2o-transparent-button2.o-tag-button2border-radius
<!-- Before: transparent + tag was the only way to get pill styling -->
<button tgButton2 [transparent]="true" [tag]="true">Button</button>
<!-- After -->
<button tg2Button shape="round">Button</button>Icon only
Icon-only detection is no longer automatic. Add [iconOnly]="true"
<!-- Before (icon-only detected automatically) -->
<button tgButton2 aria-label="heart">
<tg-icon name="heart"></tg-icon>
</button>
<!-- After -->
<button tg2Button [iconOnly]="true" aria-label="heart">
<tg-icon-left name="heart"></tg-icon-left>
</button>Removed inputs
These tgButton2tg2Button
— closest equivalent is[autoCompact]size="compact"