<!-- Do not edit this file. It is automatically generated by API Documenter. --> [`ExtraButtonComponent`](ExtraButtonComponent) › [`setIcon`](ExtraButtonComponent/setIcon) ## ExtraButtonComponent.setIcon() method **Signature:** ```typescript setIcon(icon: IconName): this; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | <code>icon</code> | [`IconName`](IconName) | ID of the icon, can use any icon loaded with [addIcon()](addIcon) or from the inbuilt library. | **Returns:** `this`