# Button

[https://github.com/flamexdev/dsc-utils/blob/main/package/src/structures/button.js](https://github.com/flamexdev/dsc-utils/blob/main/package/src/structures/button.js)

{% tabs %}
{% tab title="label" %}
| Type   | Description                                        | Required |
| ------ | -------------------------------------------------- | :------: |
| string | text that appears on the button, max 80 characters |    Yes   |
{% endtab %}

{% tab title="ID" %}
| Type   | Description                                                       | Required |
| ------ | ----------------------------------------------------------------- | :------: |
| string | a developer-defined identifier for the button, max 100 characters |    No    |
{% endtab %}

{% tab title="style" %}
| Type             | Description             | Required |
| ---------------- | ----------------------- | :------: |
| string or Number | one of the styles below |    Yes   |

> blurple, primary, 1\
> gray, secondary, 2\
> green, success, 3\
> red, danger, 4
{% endtab %}

{% tab title="url" %}
| Type   | Description                  | Required |
| ------ | ---------------------------- | :------: |
| string | a url for link-style buttons |    Yes   |

{% hint style="warning" %}
With setting this value, the style will be automatically overwritten
{% endhint %}
{% endtab %}

{% tab title="disabled" %}
| Type    | Description                    | Default | Required |
| ------- | ------------------------------ | ------- | :------: |
| boolean | whether the button is disabled | false   |    No    |
{% endtab %}
{% endtabs %}

