@wra-gov/vue-components 0.19.2 → 0.19.3

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
@@ -59,12 +59,24 @@ Composition API:
59
59
 
60
60
  ```html
61
61
  <script setup>
62
- import { Button } from "@wra-gov/vue-components";
62
+ import { WraButton } from "@wra-gov/vue-components";
63
63
  </script>
64
64
 
65
65
  ...
66
66
  ```
67
67
 
68
+ ### Nuxt usage
69
+
70
+ Create a plugin in `/plugins/component-library.js`,
71
+
72
+ ```js
73
+ import WraComponents from "@wra-gov/vue-components";
74
+
75
+ export default defineNuxtPlugin((nuxtApp) => {
76
+ nuxtApp.vueApp.use(WraComponents);
77
+ });
78
+ ```
79
+
68
80
  ## Documentation
69
81
 
70
82
  [Storybook documentation](https://welsh-revenue-authority.github.io/component-library)