> For the complete documentation index, see [llms.txt](https://daftar-situs-slot-gacor-4d-bo-ju.gitbook.io/untitled/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://daftar-situs-slot-gacor-4d-bo-ju.gitbook.io/untitled/components/buttons.md).

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

```
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.
