@wra-gov/vue-components

Vue component library created by Welsh Revenue Authority


Keywords
vue, vue3, component library
License
OGL-UK-3.0
Install
npm install @wra-gov/vue-components@0.16.0

Documentation

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 { Button } from "@wra-gov/vue-components";
</script>

...

Documentation

Storybook documentation

Licence and Copyright

WRA component library is available under Open Government 3.0 licence