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

https://github.com/yaxingson/beautiful-vue-use

A collection of beautiful vue composable utilities
https://github.com/yaxingson/beautiful-vue-use

composable typescript vue-composition-api vue-use vue3

Last synced: 8 months ago
JSON representation

A collection of beautiful vue composable utilities

Awesome Lists containing this project

README

          

## 🚀 Features

## 📦 Install

### Package manager

```shell
# npm
$ npm install beautiful-vue-use --save
$ npm install @beautiful-vue-use/animate --save

# pnpm
$ pnpm add beautiful-vue-use
$ pnpm add @beautiful-vue-use/animate --save

```

### CDN

```html

```

## 🔨 Usage

Manual import:

```js
import { useInterval, useCookie, useCounter } from 'beautiful-vue-use'
import { useInterval, useSpring } from '@beautiful-vue-use/animate'

```

Auto import:

```shell
$ npm i -D unplugin-auto-import

```

```ts
// vite.config.ts
import { defineConfig } from 'vite'
import AutoImport from 'unplugin-auto-import/vite'

export default defineConfig({
plugins:[
AutoImport({
include:[/\.vue$/],
imports:[
"beautiful-vue-use",
{
'@beautiful-vue-use/animate':[
'useInterval',
['useTimeout', 'useDelay']
]
},
{
from:'@beautiful-vue-use/effect',
imports:[''],
type:true
}
]
// ...
})
]
})

```

## 🦄 Functions

animate

effect

lifecycle

sensors

state

ui

miscellaneous

## 📄 License

MIT License © 2024-PRESENT Yaxing Son