@justeattakeaway/pie-webc 0.0.0-snapshot-release-20240417154239 → 0.0.0-snapshot-release-20240419151005

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 +17 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -32,6 +32,23 @@ $ npm i @justeattakeaway/pie-webc
32
32
  $ yarn add @justeattakeaway/pie-webc
33
33
  ```
34
34
 
35
+ ## Importing components
36
+
37
+ Simply import each one individually using its specific entrypoint.
38
+
39
+ ```js
40
+ import '@justeattakeaway/pie-webc/components/button.js';
41
+ import '@justeattakeaway/pie-webc/components/modal.js';
42
+ ```
43
+
44
+ And for React applications:
45
+
46
+ ```jsx
47
+ import { PieButton } from '@justeattakeaway/pie-webc/react/button.js';
48
+ import { PieModal } from '@justeattakeaway/pie-webc/react/modal.js';
49
+ ```
50
+
51
+
35
52
  For full information on using PIE components as part of an application, check out the [Getting Started Guide](https://github.com/justeattakeaway/pie/wiki/Getting-started-with-PIE-Web-Components).
36
53
 
37
54
  ## Contributing
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@justeattakeaway/pie-webc",
3
3
  "description": "Component bundle containing all PIE web components",
4
- "version": "0.0.0-snapshot-release-20240417154239",
4
+ "version": "0.0.0-snapshot-release-20240419151005",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "**/*.js",