@phila/phila-ui-callout 0.0.16 → 0.0.17

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 +23 -9
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,16 +1,30 @@
1
- # Callout component
1
+ ## Usage
2
2
 
3
- ## Create a new local build
3
+ #### Import single component...
4
4
 
5
- In src/components/COMPONENT_NAME:
5
+ ```js
6
+ import { Callout } from '@phila/phila-ui';
6
7
 
7
- ```
8
- npm run build
9
- npm pack
8
+ //register it locally...
9
+ components: {
10
+ Callout,
11
+ }
12
+
13
+ //... or register it globally
14
+ Vue.component('callout', Callout);
10
15
  ```
11
16
 
12
- copy .tgz file to project and run:
17
+ #### or import the whole library,
13
18
 
19
+ ```js
20
+ import * as PhilaUI from "@phila/phila-ui";
21
+
22
+ //register it globally
23
+ Vue.use(PhilaUI);
14
24
  ```
15
- npm install COMPONENT_NAME*.tgz
16
- ```
25
+
26
+ #### then use it in the vue template
27
+
28
+ ```html
29
+ <callout></callout>
30
+ ```
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@phila/phila-ui-callout",
3
3
  "private": false,
4
- "version": "0.0.16",
4
+ "version": "0.0.17",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"
@@ -43,5 +43,5 @@
43
43
  "registry": "https://registry.npmjs.com/",
44
44
  "access": "public"
45
45
  },
46
- "gitHead": "09f2b67c1d3db773c813231e21b62b37e34aefbd"
46
+ "gitHead": "f00518592815b1bf558d88f77fc4b6b3a30296e5"
47
47
  }