Skip to content
On this page

Loading ​

A simple loading overlay

Examples ​

Base

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, elit sapien laoreet elit

Show code

Slot

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, elit sapien laoreet elit

Show code

Programmatically

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, elit sapien laoreet elit

Show code

Class props ​

'Classes applied to the element'

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, elit sapien laoreet elit

Click on "Inspect" button to open the loading
How does the Class props inspector work?
Class propDescriptionPropsSuffixes
fullPageClassClass for the root element when fullpage.fullPage
iconClassClass for the loading icon.
overlayClassClass of the loading overlay.
rootClassClass of the root element.

Loading component ​

html
<o-loading></o-loading>

Props ​

Prop nameDescriptionTypeValuesDefault
activeWhether loading is active or not, use v-model:active to make it two-way bindingboolean-
animationstring-
From config:
loading: {
Β Β animation: 'fade'
}
canCancelCan close Loading by pressing escape or clicking outsideboolean-false
containerobject|func|HTMLElement-
fullPageLoader will overlay the full pageboolean-true
iconIcon namestring-
From config:
loading: {
Β Β icon: 'loading'
}
iconSizestring-'medium'
iconSpinEnable spin effect on iconboolean-true
onCancelCallback function to call after user canceled (pressed escape / clicked outside)func-Default function (see source code)
overrideboolean-
programmaticobject-
promisePromise-

Events ​

Event namePropertiesDescription
update:active
close
update:full-page

Slots ​

NameDescriptionBindings
default

Sass variables ​

Current theme ➜ Oruga Base

SASS VariableDefault
$loading-overlay-legacy#7f7f7f
$loading-overlayrgba(255, 255, 255, 0.5)
$loading-zindex29
$loading-fullpage-zindex999

See ➜ πŸ“„ Full scss file

Current theme ➜ Oruga Full

SASS VariableDefault
$loading-overlay-legacy#7f7f7f
$loading-overlayrgba(255, 255, 255, 0.5)
$loading-zindex29
$loading-fullpage-zindex999

See ➜ πŸ“„ Full scss file

Current theme ➜ Bulma

The theme does not have any custom variables for this component.

Current theme ➜ Bootstrap

SASS VariableDefault
$loading-zindex$zindex-sticky
$loading-zindex-fullpage$zindex-fixed
$loading-overlayrgba(255, 255, 255, 0.5)

See ➜ πŸ“„ Full scss file

Released under the MIT License.