Vue component library created by Welsh Revenue Authority
Dependencies:
- Vue 3
- maska
Install,
npm install @wra/vue-components
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");
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>
...
WRA component library is available under Open Government 3.0 licence