icon
Description
Optional. Adds an icon for the Two State buttonUsage
icon?: string;
Parameters
- icon - the name of a SVAR icon
The name of a default SVAR icon starts with the wxi-
prefix. Check the list of default icons.
Example
<TwoState type={"primary"} icon="wxi-alert">With an icon</TwoState>
Related article: Adding icons into Buttons
Related sample: Two State Button