Skip to content
On this page

Loading

A simple loading overlay

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


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 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.


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

Style

📄 Full scss file

CSS VariableSASS VariableDefault
--oruga-loading-overlay-legacy$loading-overlay-legacy#7f7f7f
--oruga-loading-overlay$loading-overlayrgba(255,255,255,0.5)
--oruga-loading-zindex$loading-zindex29
--oruga-loading-fullpage-zindex$loading-fullpage-zindex999

Released under the MIT License.