0.0.22 • Published 1 year ago
@canvas-party/vue v0.0.22
CanvasParty with Vue
To add canvasParty to your Vue application first install the @canvas-party/vue
package, then
add it as a plugin in the main.js
file.
To get started run this command in the terminal
$ npm install @canvas-party/vue
To add canvasParty component globally.
import { createApp } from "vue"
import "./style.css"
import CanvasParty from "@canvas-party/vue"
import App from "./App.vue"
const app = createApp(App)
app.component("canvas-party", CanvasParty)
app.mount("#app")
Adding your first canvas in Vue
<script setup>
import { ref, reactive } from "vue"
const canvasType = ref("confetti")
const canvasOptions = reactive({
colors: ["#399E5A", "#5ABCB9", "#63E2C6"],
count: 350,
})
</script>
<template>
<div>
<canvas-party :type="canvasType" :options="options" />
</div>
</template>
0.0.20
2 years ago
0.0.21
1 year ago
0.0.10
2 years ago
0.0.22
1 year ago
0.0.11
2 years ago
0.0.12
2 years ago
0.0.13
2 years ago
0.0.14
2 years ago
0.0.15
2 years ago
0.0.9
2 years ago
0.0.16
2 years ago
0.0.8
2 years ago
0.0.17
2 years ago
0.0.18
2 years ago
0.0.19
2 years ago
0.0.5
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago