The lightning:buttonIcon can only use the utility category from the Lightning icon set.
It must have an
iconName attribute and an
The demo below does not yet prevent incorrect combinations for sizes and variants, but the following apply:
The sizes for the bare variant are: x-small, small, medium, and large. For all other variants the options are: xx-small, x-small, small, and medium.
Take a look at the demo here: