# Buttons

Buttons are used to perform actions in the product.

## Default

{% embed url="<https://5ccbc373887ca40020446347-geedzbiswp.chromatic.com/iframe.html?id=button--basic&args=size:medium;containsIcon:false&viewMode=story>" %}

{% hint style="info" %}
**Good to know:** you can embed a Storybook canvas by simple pasting the canvas link and hitting enter.
{% endhint %}

```javascript
<Button
    label="Label"
    size="medium"
    kind="default"
    onClick={doTheThing}
/>
```

## Primary

{% embed url="<https://5ccbc373887ca40020446347-geedzbiswp.chromatic.com/iframe.html?id=button--basic&args=size:medium;containsIcon:false;appearance:primary&viewMode=story>" %}

```javascript
<Button
    label="Label"
    size="medium"
    kind="primary"
    onClick={doTheThing}
/>
```

## Secondary

{% embed url="<https://5ccbc373887ca40020446347-geedzbiswp.chromatic.com/iframe.html?id=button--basic&args=size:medium;containsIcon:false;appearance:secondary&viewMode=story>" %}

```javascript
<Button
    label="Label"
    size="medium"
    kind="secondary"
    onClick={doTheThing}
/>
```

*These examples are taken from the excellent* [Storybook Example Design System](https://5ccbc373887ca40020446347-geedzbiswp.chromatic.com/?path=/story/icon--labels)*.*


---

# 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://daftar-situs-slot-gacor-4d-bo-ju.gitbook.io/untitled/components/buttons.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.
