Button
The primary way to perform actions in an Orchid site or app.
- Default button
- Small button
- Centered button
- Icon before text button
- Icon after text button
- Icon only button
- Purple button
- Dark gray button
- White button
- Bare button
- Text button
- Loading button
Default button orc-c-btn
The primary way to perform actions in an Orchid site or app.
Small button orc-c-btn--small
Decreases the button and text size.
Centered button orc-c-btn--center
Horizontally centers the button.
Icon before text button
Places an + icon to the left of the button text.
Icon after text button
Places an + icon to the right of the button text.
Icon only button
Button description
Purple button orc-c-btn--purple
Button description
Dark gray button orc-c-btn--dark-gray
Applies a dark gray background to the button.
White button orc-c-btn--white
Applies a white background to the button.
Bare button orc-c-btn--bare
Removes any background or border unless the button is hovered over.
Text button orc-c-btn--text
Removes any text style, background image, border, or padding.
Loading button is-loading
Indicates that the action is loading.
-
<button class="orc-c-btn "> <div class="orc-c-btn__inner"> <span class="orc-c-btn__text orc-js-btn-text">Button</span> </div><!--end orc-c-btn__inner--> </button> <!-- end orc-c-btn -->
-
<button class="orc-c-btn orc-c-btn--small"> <div class="orc-c-btn__inner"> <span class="orc-c-btn__text orc-js-btn-text">Button</span> </div><!--end orc-c-btn__inner--> </button> <!-- end orc-c-btn -->
-
<button class="orc-c-btn orc-c-btn--center"> <div class="orc-c-btn__inner"> <span class="orc-c-btn__text orc-js-btn-text">Button</span> </div><!--end orc-c-btn__inner--> </button> <!-- end orc-c-btn -->
-
<button class="orc-c-btn "> <div class="orc-c-btn__inner"> <svg class="orc-c-btn__icon "> <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../../orchid-icons.svg#plus"></use> </svg> <span class="orc-c-btn__text orc-js-btn-text">Button</span> </div><!--end orc-c-btn__inner--> </button> <!-- end orc-c-btn -->
-
<button class="orc-c-btn "> <div class="orc-c-btn__inner"> <span class="orc-c-btn__text orc-js-btn-text">Button</span> <svg class="orc-c-btn__icon "> <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../../orchid-icons.svg#plus"></use> </svg> </div><!--end orc-c-btn__inner--> </button> <!-- end orc-c-btn -->
-
<button class="orc-c-btn "> <div class="orc-c-btn__inner"> <svg class="orc-c-btn__icon "> <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="../../orchid-icons.svg#plus"></use> </svg> </div><!--end orc-c-btn__inner--> </button> <!-- end orc-c-btn -->
-
<button class="orc-c-btn orc-c-btn--purple"> <div class="orc-c-btn__inner"> <span class="orc-c-btn__text orc-js-btn-text">Button</span> </div><!--end orc-c-btn__inner--> </button> <!-- end orc-c-btn -->
-
<button class="orc-c-btn orc-c-btn--dark-gray"> <div class="orc-c-btn__inner"> <span class="orc-c-btn__text orc-js-btn-text">Button</span> </div><!--end orc-c-btn__inner--> </button> <!-- end orc-c-btn -->
-
<button class="orc-c-btn orc-c-btn--white"> <div class="orc-c-btn__inner"> <span class="orc-c-btn__text orc-js-btn-text">Button</span> </div><!--end orc-c-btn__inner--> </button> <!-- end orc-c-btn -->
-
<button class="orc-c-btn orc-c-btn--bare"> <div class="orc-c-btn__inner"> <span class="orc-c-btn__text orc-js-btn-text">Button</span> </div><!--end orc-c-btn__inner--> </button> <!-- end orc-c-btn -->
-
<button class="orc-c-btn orc-c-btn--text"> <div class="orc-c-btn__inner"> <span class="orc-c-btn__text orc-js-btn-text">Button</span> </div><!--end orc-c-btn__inner--> </button> <!-- end orc-c-btn -->
-
<button class="orc-c-btn orc-is-loading"> <div class="orc-c-btn__inner"> <span class="orc-c-btn__text orc-js-btn-text">Button</span> <img class="orc-c-loader orc-is-loading" src="../../images/loader-cherries.svg" alt= /> </div><!--end orc-c-btn__inner--> </button> <!-- end orc-c-btn -->
Usage
When to use
Use a button when there is one prioritized call to action.
When to consider an alternative
If the user has a choice to make, with each choice requiring an interactive next step, use a button group.
Class Name | Description |
---|---|
Required
|
Apply to the containing HTML element. Used with a |
Modifier
|
Add to the |
Modifier
|
Add to the |
Modifier
|
Add to the |
Modifier
|
Add to the |
Modifier
|
Add to the |
Modifier
|
Add to the |
Modifier
|
Add to the |
Modifier
|
Add to the |
Recommended
|
Add within |
|
Icon within a button. When |
JS
|
Add to first |
JS
|
Add to an additional |
|
Utility class aded to |
Recommended
|
Text of the button. |
JS
|
Add to |
|
The SVG image that needs to be added if a button is in an |