Skip to content

yaxingson/beautiful-vue-use

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Features

📦 Install

Package manager

# 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

<script src="https://unpkg.com/beautiful-vue-use"></script>
<script src="https://unpkg.com/@beautiful-vue-use/animate"></script>

🔨 Usage

Manual import:

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

Auto import:

$ npm i -D unplugin-auto-import
// 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

About

A collection of beautiful vue composable utilities

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published