Migrating from tgButton2
Replace the tgButton2tg2ButtonTg2ButtonComponentTgButton2Component
Selector
<!-- Before -->
<button tgButton2>Button</button>
<!-- After -->
<button tg2Button>Button</button>Variant
The separate inputs ([transparent][tgStyle]tg2Style
<!-- Before -->
<button tgButton2 [transparent]="true">Button</button>
<!-- After -->
<button tg2Button tg2Style="transparent">Button</button>Size
The [compact]size
<!-- Before -->
<button tgButton2 [compact]="true">Button</button>
<!-- After -->
<button tg2Button size="small">Button</button>Auto size
The [autoCompact]autoSizeautoSize="small"
<!-- Before -->
<button tgButton2 [autoCompact]="true">Button</button>
<!-- After -->
<button tg2Button autoSize="small">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>