New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

slay-loader

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slay-loader

GitHub repository: Slay loader

latest
npmnpm
Version
1.0.4
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Slay Loader library for Vue3

GitHub repository: Slay loader

Here's a brief introduction or check documentation

You can use it with global state your app, and connect the component on main App file. Or you can use it on separate page, and change state loader from local data.

What does it look like


Installation

$ npm i slay-loader

Use

main.ts

import { createApp } from 'vue';
import App from './App.vue';
import { SlayLoader } from 'slay-loader';
import 'slay-loader/dist/style.css';
createApp(App)
    .component('SlayLoader', SlayLoader)
    .mount('#app')

Component

<SlayLoader
      :show="true"
      :animation="`fade`"
      :time="500"
      :background="`radial-gradient(circle, rgba(198,90,254,1) 0%, rgba(184,251,196,1) 100%)`"
      :text="`Please wait, loading...`"
  />

Options

DirectiveTypeDescription
showbooleanShow or hide loader
animationstringVisual effect animation (fade, drag-top, drag-bottom, drag-left, drag-right)
timenumberNumber duration animation in ms
backgroundstringBackground color for loader (it can be gradient, or something else)
textstringText on loader
spinnerstringIt can be your custom image spinner (examole: /assets/puff.svg)

FAQs

Package last updated on 03 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts