--- title: Buttons parent: UI Components nav_order: 2 --- # Buttons {: .no_toc } ## Table of contents {: .no_toc .text-delta } 1. TOC {:toc} --- ## Basic button styles ### Links that look like buttons
[Link button](https://just-the-docs.com){: .btn } [Link button](https://just-the-docs.com){: .btn .btn-purple } [Link button](https://just-the-docs.com){: .btn .btn-blue } [Link button](https://just-the-docs.com){: .btn .btn-green } [Link button](https://just-the-docs.com){: .btn .btn-outline }
```markdown [Link button](https://just-the-docs.com){: .btn } [Link button](https://just-the-docs.com){: .btn .btn-purple } [Link button](https://just-the-docs.com){: .btn .btn-blue } [Link button](https://just-the-docs.com){: .btn .btn-green } [Link button](https://just-the-docs.com){: .btn .btn-outline } ``` ### Button element GitHub Flavored Markdown does not support the `button` element, so you'll have to use inline HTML for this:
```html ``` --- ## Using utilities with buttons ### Button size Wrap the button in a container that uses the [font-size utility classes]({% link docs/utilities/typography.md %}) to scale buttons:
[Big ass button](https://just-the-docs.com){: .btn } [Tiny ass button](https://just-the-docs.com){: .btn }
```markdown [Link button](https://just-the-docs.com){: .btn } [Tiny ass button](https://just-the-docs.com){: .btn } ``` ### Spacing between buttons Use the [margin utility classes]({% link docs/utilities/layout.md %}#spacing) to add spacing between two buttons in the same block.
[Button with space](https://just-the-docs.com){: .btn .btn-purple .mr-2 } [Button](https://just-the-docs.com){: .btn .btn-blue } [Button with more space](https://just-the-docs.com){: .btn .btn-green .mr-4 } [Button](https://just-the-docs.com){: .btn .btn-blue }
```markdown [Button with space](https://just-the-docs.com){: .btn .btn-purple .mr-2 } [Button](https://just-the-docs.com){: .btn .btn-blue } [Button with more space](https://just-the-docs.com){: .btn .btn-green .mr-4 } [Button](https://just-the-docs.com){: .btn .btn-blue } ```