Loading

Indicate that content or an operation is loading.

Loading

Logo loader

SLogoLoading is the shared default indicator used by Sax Design Vue components. Its SVG paths preserve the project mark: the two halves of the S flow into a three-color orbit, rotate while active, and follow the reverse route when active becomes false. The default production speed is 2.5; set speed when a larger presentation needs a slower motion. The operating-system reduced-motion preference produces a static ring.

Brand mark (default)

Generate a loading with the Sax Design function

Copied
import { SLoading, SLoadingFn } from 'sax-design-vue'

SLoadingFn(options)

// Or use via service
SLoading.service(options)

Type Update

Change the type of loading with the option type. Only logo uses the shared logo loader; every named alternative keeps its own visual.

Tipos de loading:

  • atom
  • ball
  • scale
  • waves
  • border
  • points
  • square
  • circles
  • corners
  • default
  • gradient
  • rectangle
  • square-rotate

Click on the example loading to open it in the whole page

Color

Change the color of the loading animation with the property color, the colors can be the main ones of Sax Design or (RGB, HEX)

Background

You can change the loading background with the property loading

Text

Add a descriptive text of the loading or informing the user that it is loading or that it is missing to load with the property text

Percent

You can add a string of the percentage of load with the percent property, if you need to change that value use the setPercent function in the loading instance.

Progress

Add a progress bar at the top to indicate the loading progress of the loading with the progress property, the value is a number that determines the percentage and the allowed value is (0 - 100)

Target

Use the loading on a specific dom element using the target property and the value can be a string with the id or the class only if it is unique for the element, you can also use the element itself as per example using $refs.

Ensure the target’s style was set position

API

PROPS

Property
Type
Values
Description
default
Example
More
type
String
atomballscalewavesborderpointssquarecirclescornerslogogradientrectanglesquare-rotate
Change the animation of the loading.
logo
String
primary | success | danger | warn | warning | dark | text | light | secondary | RGB | RGBA | HEX | HSL | HSLA
Change the color of the loading animation.
primary
String
primary | success | danger | warn | warning | dark | text | light | secondary | RGB | RGBA | HEX | HSL | HSLA
Change the background color of the loading.
#fff
text
String
String
Add a text below the loading animation.
—
percent
Number
0 - 100 (%)
Add a percentage text inside the loading.
—
progress
Number
0 - 100
Add a progress bar to the loading and the progress would be the value.
—
target
String | HTMLElement | Ref<HTMLElement> | Vue Component
String: Element SelectorHTMLElement: Selector elementRef HTMLElement
Determine the parent of the loading where it will be instantiated.
—
opacity
Number
0 - 1
Change the opacity of the background.
0.6
scale
Number
null
Change the size of the loading animation.
1
setPercent
Function
(percent: Number) => void
Change the value of the percent after instantiating the loading.
—
setProgress
Function
(progress: Number) => void
Change the value of the progress after instantiating the loading.
—
setText
Function
(text: String) => void
Change the value of the text property after instantiating the loading.
—

SLogoLoading props

Property
Type
Values
Description
default
Example
More
stop-behavior
'restore' | 'corners'
—
With square shape, corners clears the orbit at each corner within one edge of travel. The default restores the logo. Completion emits restored in both modes.
restore
—
shape
'rounded' | 'square'
—
Choose the circular or square loading orbit. Inherits the shared shape configuration when omitted.
rounded
—
active
Boolean
truefalse
Start the logo-to-orbit motion; false runs the reverse restoration.
true
size
Number | String
CSS size
Set the square SVG size; numbers use pixels.
1em
speed
Number
> 0
Set the playback multiplier for the complete motion.
2.5
reduced-motion
Boolean
truefalse
Override the operating-system motion preference; reduced motion uses a static ring.
—
label
String
accessible text
Give a standalone loader an accessible status label; omit it when a parent exposes aria-busy.
—
Last Updated: 2026-10-28, 06:17:56 UTC
Copied