0.19.3 • Published 5 months ago

@wra-gov/vue-components v0.19.3

Weekly downloads
-
License
OGL-UK-3.0
Repository
github
Last release
5 months ago

Welsh Revenue Authority Component Library

Vue component library created by Welsh Revenue Authority

NPM Version Cypress Tests

Installation

Dependencies:

  • Vue 3
  • maska

Install,

npm install @wra/vue-components

Usage

Default import

main.js,

import { createApp } from "vue";
import App from "./App.vue";
import Wra from "@wra-gov/vue-components";

const app = createApp(App);

// Global registration of all components
app.use(Wra);

app.mount("#app");

Named imports

Options API:

*.vue,

<script>
  import WraButton from "@wra-gov/vue-components";

  export default {
    components: {
      WraButton,
    },
  };
</script>

Composition API:

*.vue,

<script setup>
  import { WraButton } from "@wra-gov/vue-components";
</script>

...

Nuxt usage

Create a plugin in /plugins/component-library.js,

import WraComponents from "@wra-gov/vue-components";

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.use(WraComponents);
});

Documentation

Storybook documentation

Licence and Copyright

WRA component library is available under Open Government 3.0 licence

0.19.3

5 months ago

0.19.2

8 months ago

0.19.1

9 months ago

0.19.0

10 months ago

0.17.2

10 months ago

0.18.0

10 months ago

0.17.1

10 months ago

0.16.0

10 months ago

0.17.0

10 months ago

0.14.0

12 months ago

0.15.0

12 months ago

0.10.0

1 year ago

0.11.0

1 year ago

0.12.0

1 year ago

0.13.0

1 year ago

0.9.0

1 year ago

0.8.0

1 year ago

0.7.0

1 year ago

0.6.0

1 year ago

0.5.0

1 year ago

0.4.0

1 year ago

0.3.0

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago