# 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="https://174969393-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxNCrgHvEtBEHJOGTOcsQ%2Fuploads%2Fgit-blob-99632eda6c4aab2b27428d70a99e080b0d134677%2Fimage%20(70).png?alt=media" 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="https://174969393-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxNCrgHvEtBEHJOGTOcsQ%2Fuploads%2Fgit-blob-8f9b04a7d1580bf6aa136a05fe41850d4c42a41b%2Fimage%20(71).png?alt=media" 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="https://174969393-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxNCrgHvEtBEHJOGTOcsQ%2Fuploads%2Fgit-blob-20fe5c0d63b16a1ecf2208b3c0b9900aa1fd102e%2Fimage%20(72).png?alt=media" 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="https://174969393-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxNCrgHvEtBEHJOGTOcsQ%2Fuploads%2Fgit-blob-4d5ae4888bae184973cc18e9b81e474e414f3886%2Fimage%20(64).png?alt=media" 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>
