# Buttons

Our button component in the Sunbird-Ed portal utilizes the `sb-btn` class as the default style. It's versatile, with variations available in primary, secondary, warning, error, and gray colors, each represented by specific classes like `sb-btn-primary`, `sb-btn-secondary`, and others.

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

**Outline Button Variation:**

We offer an outline button variation to provide a different visual style. These are denoted by classes like `sb-btn-outline-primary, sb-btn-outline-secondary` and others.

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

**Size Variations:**

Our button component supports various sizes to cater to different layout requirements. These sizes are represented by classes such as `sb-btn-xs`, `sb-btn-normal`, `sb-btn-sm`, `sb-btn-md`, and `sb-btn-large`.

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

**Theme Variations**

Incorporating the Joy theme, we've made specific modifications to the button component to align with its vibrant and engaging visual style.

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

Example of how to use classes for buttons

```
<button type="button" class="sb-btn sb-btn-primary sb-btn-normal">Primary Button/Info</button>
<button type="button" class="sb-btn sb-btn-outline-primary sb-btn-normal">Primary Button/Info</button>
```

For more information please refer to this link: <https://sunbird-ed.github.io/sunbird-style-guide/dist/#/buttons>


---

# 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://ed.sunbird.org/older-versions/contribute/source-code/workflows/ui-user-interface-sunbird-ed-portal/component-style-guide-version-1/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.
