@adyen/lume 0.1.6 → 0.1.7

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.
package/README.md CHANGED
@@ -8,6 +8,11 @@ Lume is a library for graphical representations of information and data. By usin
8
8
 
9
9
  **[Design guidelines (Figma)](https://www.figma.com/file/r9fPqTXA4dlP6SIyfmGlDC/%F0%9F%8C%9D-Lume---Data-Visualization-Library)**
10
10
 
11
+ - [Stack](#stack)
12
+ - [Getting started](#getting-started)
13
+ - [Development](#development)
14
+ - [Contacts](#contacts)
15
+
11
16
  ## Stack
12
17
 
13
18
  ### Dependencies
@@ -36,24 +41,9 @@ To install Lume, run the following command:
36
41
  $ npm install @adyen/lume
37
42
  ```
38
43
 
39
- ### Plugin
40
-
41
- The default export of Lume is a Vue plugin that you can install in your global Vue setup:
42
-
43
- ```ts
44
- import Vue from 'vue';
45
- import Lume from '@adyen/lume';
46
-
47
- import App from './my-app.vue';
48
-
49
- Vue.use(Lume);
50
-
51
- const app = new Vue(App).$mount('#root');
52
- ```
53
-
54
44
  ### Components
55
45
 
56
- If, instead of using the Vue plugin, you rather import single components as you go, you can do that as well:
46
+ You can import Lume components to your Vue app:
57
47
 
58
48
  ```ts
59
49
  // SFC <script type="ts">
@@ -67,6 +57,21 @@ export default defineComponent({
67
57
  });
68
58
  ```
69
59
 
60
+ ### Plugin
61
+
62
+ You can also import Lume as a Vue plugin that you install in your global Vue setup:
63
+
64
+ ```ts
65
+ import Vue from 'vue';
66
+ import LumePlugin from '@adyen/lume/plugin';
67
+
68
+ import App from './my-app.vue';
69
+
70
+ Vue.use(LumePlugin);
71
+
72
+ const app = new Vue(App).$mount('#root');
73
+ ```
74
+
70
75
  ## Development
71
76
 
72
77
  ### Quick start