Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/peterroe/uspin

A vue3 component that spins on load
https://github.com/peterroe/uspin

component loading vue3

Last synced: about 2 months ago
JSON representation

A vue3 component that spins on load

Lists

README

        

## uspin

A vue3 component that spins on load

## Install

```shell
$ npm install uspin
```

## Usage

```html

import { ref } from 'vue'
import { hide, show } from 'uspin' // import uspin

const targetRef = ref<HTMLElement | undefined>(undefined)


💻 A front end developer.


🥉 Working Rss-Reader based on tauri-app.


🦄 Enjoy JavaScript,VueJs and NodeJs.


🍉 Hobby maybe blogging and write open source tools.


💨 Visit peterroe.icu for more information.





show
hide

```

## Config

```ts
export interface SpinConfig {
logoColor?: string // default: '#fff'
size?: string // default: '5em'
bgColor?: string // default: '#ddd'
opacity?: number // default: 0.5
}

export declare function show(targetRef: Ref, config?: SpinConfig): void

export declare function hide(targetRef: Ref): void
```

## Preview

![img](https://img-blog.csdnimg.cn/9fa98b82a0f445a39d869fce28cd65cc.gif)