> For the complete documentation index, see [llms.txt](https://docs.cwicly.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cwicly.com/blocks/button/icon.md).

# Icon

The button block integrates an icon element that can be added before or after the text.

You can modify the size and spacing of the icon.

You can also add a hover effect to your button block.

## Find

* Select a button block.
* In the Primary tab of the Block Inspector, open the Icon tab.

<figure><img src="/files/5X0m0xVz9PoNEoNCst3O" alt=""><figcaption></figcaption></figure>

## On/Off State

The Icon property allows you to define whether you want to have a visible icon inside the button block.

* Select a button block.
* In the Primary tab of the Block Inspector, open the Icon tab.
* Select required state: On or Off.

<figure><img src="/files/gIkj2M9IrxVRXvwjUnZo" alt=""><figcaption></figcaption></figure>

## Select Icon

Use the Icon Selector to select the desired icon.

* Select a button block.
* In the Primary tab of the Block Inspector, open the Icon tab.
* Click Icon logo to open the Icon Library.
* Choose required icon.

<figure><img src="/files/t7Vx9nkjyNcxTXzfZJwG" alt=""><figcaption></figcaption></figure>

## Size

The Icon Size property defines the size of the icon.&#x20;

{% hint style="info" %}
If no size is defined, the icon will not be visible.
{% endhint %}

* Select a button block.
* In the Primary tab of the Block Inspector, open the Icon tab.
* Find the Icon Size property.
* Input required value.

<figure><img src="/files/mnnMUT18dOKpYuk1qHwD" alt=""><figcaption></figcaption></figure>

## Spacing

The Icon Spacing property allows you to define the size of the margin between the text and the icon inside the button block.

* Select a button block.
* In the Primary tab of the Block Inspector, open the Icon tab.
* Find the Spacing property.
* Input required value.

<figure><img src="/files/LTfED0QEQblQp0WENMb5" alt=""><figcaption></figcaption></figure>

## Position

The Icon Position property allows you to define whether the icon should be placed before (to the left) or after (to the right).

* Select a button block.
* In the Primary tab of the Block Inspector, open the Icon tab.
* Find the Position property.
* Input required value.
* Select the desired position (before, after).

<figure><img src="/files/GYUTEoQl6cc9DdFhrfE8" alt=""><figcaption></figcaption></figure>

## Hover

The hover property allows you to add a hover effect to your button. Possible effects include: none, grow, shrink, pulse, push, pop, bounce in, bounce out, rotate, zoom rotate, rise, set, levitate, de-levitate, skew, wiggle vertical, wiggle horizontal, shake out.

* Select a button block.
* In the Primary tab of the Block Inspector, open the Icon tab.
* In the Hover dropdown, select required effect.

<figure><img src="/files/GZhVQB4cdRG9k2YDo6UT" alt=""><figcaption></figcaption></figure>

{% content-ref url="/pages/-MS3HUfTBRpW26sux8yf" %}
[Icon](/blocks/icon.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cwicly.com/blocks/button/icon.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
