Skip to main content
Version: 2.1

Frontend - UI - LoadingScreen

Often you'll want to wait until you've fetched the data from the server before displaying the page, this component provides a fast and quick way to insert a loading screen while you wait for the data to be returned.

Props

NameData TypeDefaultDescription
readybooleann/aIf the page is loaded or not
loadingSpinnerColorstringblackThe colour of the spinner
loadingClassstringloading-messageThe class assigned to the div that contains the loading message
loadingMessagestringLoadingThe text to be displayed with the loading

Slots

There are two slots, the default slot and loading slot.

The loading slot is optional and contains LoadingMessage by default.

Example

<LoadingScreen :ready="loaded" loading-message="Loading message">
<p>Content</p>
</LoadingScreen>