# Button

:eye: [PREVIEW](https://greenelab.github.io/lab-website-template/testbed#button)

```liquid
{%
  include button.html
  type="github"
  link="some_github_handle"
  icon="fa-brands fa-github"
  text="Follow us on GitHub"
  tooltip="Follow us on GitHub for new releases"
  flip=true
  style="bare"
%}
```

<table><thead><tr><th width="132.33333333333331">Parameter</th><th width="454">Description</th><th>Default</th></tr></thead><tbody><tr><td><code>type</code></td><td>When specified, looks up default/fallback values for unspecified parameters from <code>/_data/types.yaml</code>.</td><td></td></tr><tr><td><code>link</code></td><td>URL to link to, without any prefixes like @, www., etc.</td><td>From <code>type</code></td></tr><tr><td><code>icon</code></td><td><a href="/pages/ncvw8266ixtiCEAuYbGw">Icon</a> to show.</td><td>From <code>type</code></td></tr><tr><td><code>text</code></td><td>Text next to icon.</td><td>From <code>type</code></td></tr><tr><td><code>tooltip</code></td><td>Text to show when hovering over the button.</td><td>From <code>type</code></td></tr><tr><td><code>flip</code></td><td>Flip the order of icon and text.</td><td><code>false</code> (icon left of text)</td></tr><tr><td><code>style</code></td><td>Visual style of the button. Set to <code>bare</code> for a more plain style.</td><td>Typical button appearance</td></tr></tbody></table>

{% hint style="info" %}
Tip: Prefer starting with just `type`, and only specify the parameters you need to override.
{% endhint %}

{% hint style="info" %}
Defaults with `type` only get applied to completely unspecified parameters. If you need to force no text, for example, just set `text=""`.
{% endhint %}


---

# 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://greene-lab.gitbook.io/lab-website-template-docs/basics/components/button.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.
