Button

The Button component is an interactive UI element that triggers an action or event when clicked.

fill
outline
ghost

default

hover

focus

active

disabled

Code

<button class="backoffice-button backoffice-button-ghost">My Text</button>
Class nametype
backoffice-buttoncomponentContainer element

backoffice-button[data-no-animation],

@media (prefers-reduced-motion: reduce) {

.backoffice-button { ... }

}

modifierDrops the parameters of animation
backoffice-button-xsmodifierAdds xs size
backoffice-button-smmodifierAdds sm size
backoffice-button-fillmodifierSets the button`s fill options
backoffice-button-iconmodifierSets the icon`s display parameters
backoffice-button-full-widthmodifierSets the buttons`s variant
backoffice-button-outlinemodifierSets the outline style
backoffice-button-outline small,
backoffice-button-outline svg,
backoffice-button-outline \*[data-moon-icon]
modifierSets the outline style
backoffice-button-ghostmodifierSets the buttons`s variant
backoffice-button-ghost small,
backoffice-button-ghost svg,
backoffice-button-ghost \*[data-moon-icon]
modifierSets the buttons`s variant
backoffice-button:focus,
backoffice-button-focus
modifierSets the display of the focused status
backoffice-button-disabled,
backoffice-button[disabled],
backoffice-button:disabled
modifierSets the display of the disabled status

@media (hover: hover) {

.backoffice-button-hover, .backoffice-button:hover, .backoffice-button[data-is-hover] { ... }

}

modifierSets the display of the hover status
backoffice-button-active:after,
backoffice-button:active:after
modifierSets the display of the :after pseudo-element in the active status
backoffice-button-ghost.backoffice-button-active:after,
backoffice-button-ghost.backoffice-button:active:after,
backoffice-button-outline.backoffice-button-active:after,
backoffice-button-outline.backoffice-button:active:after
modifierSets the display of the :after pseudo-element in the active status for other variants of the button
backoffice-button-hover:after,
backoffice-button:hover:after,
backoffice-button[data-is-hover]:after
modifierSets the display of the :after pseudo-element in the hover status

Was this page helpful?