> For the complete documentation index, see [llms.txt](https://lewe.gitbook.io/lewe-bootstrap-visuals/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lewe.gitbook.io/lewe-bootstrap-visuals/shortcodes/button.md).

# Button

For the Button you can define different styles and sizes and and link it to a URL.

## Examples

{% code overflow="wrap" %}

```
[bsv-button style="info" size="xs"]X Small[/bsv-button]
```

{% endcode %}

<figure><img src="/files/8HGAoCOsfrVurkCxdz9w" alt=""><figcaption></figcaption></figure>

{% code overflow="wrap" %}

```
[bsv-button customtextcolor="#ffffff" custombgcolor="#000099"]Custom Blue[/bsv-button]
```

{% endcode %}

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

{% code overflow="wrap" %}

```
[bsv-button style="success" link="https://www.lewe.com" target="_blank" outline="yes" tooltip="Go to Lewe.com..."]Lewe.com[/bsv-button]
```

{% endcode %}

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

## Format

{% code overflow="wrap" %}

```
[bsv-button parameter="value" ...]your content here[/bsv-button]
```

{% endcode %}

## Parameters

| Parameter       | Description                                                                                                                                                                             | Default    |
| --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- |
| style           | <p>Defines the Bootstrap style. Supported values:</p><ul><li>danger</li><li>dark</li><li>info</li><li>light</li><li>primary</li><li>secondary</li><li>success</li><li>warning</li></ul> | primary    |
| size            | <p>Button size other than default. Supported values:</p><ul><li>xs</li><li>sm</li><li>lg</li></ul>                                                                                      | *no value* |
| link            | The button can link to a URL. Define it here.                                                                                                                                           | *no value* |
| target          | <p>If a link is defined, this defines the target of the link. Supported values:</p><ul><li>\_blank</li><li>\_parent</li><li>\_self</li><li>\_top</li></ul>                              | \_self     |
| tooltip         | If a link is defined, this defines the tooltip of the button.                                                                                                                           | *no value* |
| outline         | <p>Displays the button in outline style. Supported values:</p><ul><li>no</li><li>yes</li></ul><p>This does not work in combination with ‘customtextcolor’ or ‘custombgcolor’.</p>       | no         |
| customtextcolor | If you want to change the text color of the button style you can do it here by proividng the hex color code in CSS format, e.g. #99000.                                                 | *no value* |
| custombgcolor   | If you want to change the background color of the button style you can do it here by proividng the hex color code in CSS format, e.g. #000099.                                          | *no value* |


---

# 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, and the optional `goal` query parameter:

```
GET https://lewe.gitbook.io/lewe-bootstrap-visuals/shortcodes/button.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
