@scalar/use-toasts 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +34 -0
  2. package/package.json +19 -2
package/README.md ADDED
@@ -0,0 +1,34 @@
1
+ # Scalar useToasts()
2
+
3
+ ![Version](https://img.shields.io/npm/v/%40scalar/use-toasts)
4
+ ![Downloads](https://img.shields.io/npm/dm/%40scalar/use-toasts)
5
+ ![License](https://img.shields.io/npm/l/%40scalar%2Fuse-toasts)
6
+ [![Discord](https://img.shields.io/discord/1135330207960678410?style=flat&color=5865F2)](https://discord.gg/mw6FQRPh)
7
+
8
+ ## Installation
9
+
10
+ ```bash
11
+ npm install @scalar/use-toasts
12
+ ```
13
+
14
+ ## Usage
15
+
16
+ ```vue
17
+ // App.vue
18
+ <script setup>
19
+ import { FlowToastContainer } from '@scalar/use-toasts'
20
+ </script>
21
+
22
+ <template>
23
+ <FlowToastContainer />
24
+ </template>
25
+ ```
26
+
27
+ ```vue
28
+ // ChildComponent.vue
29
+ <script setup>
30
+ import { useToasts } from '@scalar/use-toasts'
31
+
32
+ addToast({ title: 'Hello :-)' }, { timeout: 2000 })
33
+ </script>
34
+ ```
package/package.json CHANGED
@@ -1,7 +1,24 @@
1
1
  {
2
2
  "name": "@scalar/use-toasts",
3
- "version": "0.4.0",
4
- "author": "Scalar",
3
+ "description": "display toasts in Vue",
4
+ "keywords": [
5
+ "vue",
6
+ "vue3",
7
+ "composable",
8
+ "toast",
9
+ "notifcation"
10
+ ],
11
+ "version": "0.4.1",
12
+ "author": "Scalar (https://github.com/scalar)",
13
+ "homepage": "https://github.com/scalar/scalar",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/scalar/scalar.git",
17
+ "directory": "packages/use-toasts"
18
+ },
19
+ "bugs": {
20
+ "url": "https://github.com/scalar/scalar/issues/new"
21
+ },
5
22
  "license": "MIT",
6
23
  "engines": {
7
24
  "node": ">=18"