New API: Button Icon

Hi everyone,

We released a new API for the button element, icon .

You can now set, get, expand, and collapse a button’s icon in your code.

For a full description, see the API Reference .

Note:
There is one known issue with this feature for bolt users. An icon added to a text-only button doesn’t appear in site preview. The published site works as expected. The team is working hard to fix this issue as soon as possible.

4 Likes