> For the complete documentation index, see [llms.txt](https://dev.xena.biz/xena-developer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.xena.biz/xena-developer/user-interface/styleguide/buttons.md).

# Buttons

Available button styles:

![Buttons.](/files/-LZoLuG5DK98_jl0rgwH)

Please note:

* We do not use the `btn-info` and `btn-warning` unless it really make sense in a specific case.
* `btn-primary` should only be used once in every view, if possible.&#x20;
* All the `btn` classes can be used on both `a` and `button` elements.

{% content-ref url="/pages/-L\_7--oVjdh\_pwaAgRHl" %}
[Design Guide](/xena-developer/user-interface/styleguide.md)
{% endcontent-ref %}

Examples:

![Primary button.](/files/-LZoLuG7JOEb2i6a8Sgn)

```markup
<button class="btn btn-primary">Buy</button>
<button class="btn btn-default">Cancel</button>
```

![Danger button.](/files/-LZoLuG9flL7DO1eyUkE)

```markup
<button class="btn btn-danger">Delete</button>
<button class="btn btn-default">Cancel</button>
```

![Success button.](/files/-LZoLuGBcRRgR11CMAmE)

```markup
<button class="btn btn-success">Complete</button>
<button class="btn btn-default">Back</button>
```

## Button group

![Four buttons grouped.](/files/-LZoLuGDlKRtBtscvmxB)

```markup
 <div class="btn-group">
    <button class="btn btn-default"><i class="fas fa-arrow-left"></i></button>
    <button class="btn btn-default"><i class="fas fa-play-circle"></i></button>
    <button class="btn btn-default"><i class="fas fa-pause-circle"></i></button>
    <button class="btn btn-default"><i class="fas fa-arrow-right"></i></button>
</div>
```

## Justified button group:

![Four buttons grouped.](/files/-LZoLuGFfhcmr359haRN)

```markup
<div class="btn-group btn-group-justified">
    <div class="btn-group">
        <button class="btn btn-default"><i class="fas fa-arrow-left"></i></button>
    </div>
    <div class="btn-group">
        <button class="btn btn-default"><i class="fas fa-play-circle"></i></button>
    </div>
    <div class="btn-group">
        <button class="btn btn-default"><i class="fas fa-pause-circle"></i></button>
    </div>
    <div class="btn-group">
        <button class="btn btn-default"><i class="fas fa-arrow-right"></i></button>
    </div>
</div>
```

Same effect with `a` elements:

```markup
<div class="btn-group btn-group-justified">
    <a href="#" class="btn btn-default"><i class="fas fa-arrow-left"></i></a>
    ...
</div>
```


---

# 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://dev.xena.biz/xena-developer/user-interface/styleguide/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.
