theme: SoftUI({
  preloader: {
    image: String,
    spinner: Boolean,
    text: String,
  },
});

Example Usage

theme: SoftUI({
  preloader: {
      image: "/img/soft-ui.webp",
      spinner: false,
      text: "Page is loading"
  },
})

Image

Props

image
string

The image for the preloader

spinner
boolean
required

Disables the image and displays a spinner instead

text
string
required

The text for the preloader