@steveyuowo/vue-hot-toast
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "@steveyuowo/vue-hot-toast", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -10,2 +10,41 @@ <img src="./public/header.gif" /> | ||
## Installation | ||
- pnpm | ||
```bash | ||
pnpm install @steveyuowo/vue-hot-toast | ||
``` | ||
- npm | ||
```bash | ||
npm install @steveyuowo/vue-hot-toast | ||
``` | ||
## Getting Started | ||
Add the Toast and call the toast function. | ||
```vue | ||
<script setup lang="ts"> | ||
import { Toast, toast } from "@steveyuowo/vue-hot-toast"; | ||
import "@steveyuowo/vue-hot-toast/vue-hot-toast.css"; | ||
</script> | ||
<template> | ||
<button | ||
@click=" | ||
toast({ | ||
type: 'success', | ||
duration: 9000, | ||
autoClose: false | ||
}) | ||
" | ||
> | ||
Success | ||
</button> | ||
<Toast /> | ||
</template> | ||
``` | ||
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
13107374
32
400
50
2
1