# Button

Un botón es un control caracterizado por ser un elemento clickeable dentro de nuestra app, permitiendo a los usuarios interactuar ejecutando un conjunto de funciones con un objetivo específico. Generalmente, cuenta con una etiqueta que describe una acción en una palabra, como por ejemplo: "Presióname", "Guardar".

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

{% tabs %}
{% tab title="Style" %}

{% endtab %}

{% tab title="Data" %}

{% endtab %}

{% tab title="Events & EventOutput" %}

{% endtab %}

{% tab title="Modify properties" %}
**style.background** : Modifica el color de fondo de nuestro boton.

**label** : Modifica la etiqueta de nuestro control.

**name** : Modifica el nombre asignado a nuestro botton.

**style.height.value** : Modifica la altura de nuestro botton.

**style.width.value :** Modifica el ancho de nuestro botton.
{% endtab %}

{% tab title="Default control structure" %}

```json
{
        "id": "76Q7pNm9HjCJk4qPd268vB",
        "isDynamicLoadingEnabled": false,
        "label": "Click Me",
        "name": "Button",
        "style": {
            "background": {
                "type": "palette",
                "value": {
                    "base": "secondary",
                    "shade": "900"
                }
            },
            "borderBottomLeftRadius": 10,
            "borderBottomRightRadius": 10,
            "borderTopLeftRadius": 10,
            "borderTopRightRadius": 10,
            "color": {
                "type": "palette",
                "value": {
                    "base": "secondary",
                    "shade": "100"
                }
            },
            "fontSize": {
                "type": "global"
            },
            "height": {
                "unit": "px",
                "value": 42
            },
            "marginBottom": 2,
            "marginLeft": 2,
            "marginRight": 2,
            "marginTop": 2,
            "overflow": "hidden",
            "paddingBottom": 0,
            "paddingLeft": 0,
            "paddingRight": 0,
            "paddingTop": 0,
            "width": {
                "unit": "px",
                "value": 100
            }
        },
        "tag": "button"
    }
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: 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:

```
GET https://docs.apphive.io/apphive-documentacion/reference/controles/button.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
