We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
for those who struggling with nuxtjs, here is my solution:
nuxtjs
create a plugin at plugins/atlaskit.js:
plugins/atlaskit.js
import * as atlaskitComponents from '@spartez/vue-atlaskit' import Vue from 'vue' export default function () { Object.entries(atlaskitComponents).forEach(([name, component]) => { Vue.component(name, component) }) }
and then reference it in nuxt.config.js:
nuxt.config.js
{ head: { link: [ // not forgetting this! { rel: 'stylesheet', href: 'https://unpkg.com/@spartez/vue-atlaskit/dist/bundle.css' } }, plugins: [ { src: '~plugins/atlaskit.js', mode: 'client' }, ], }
then just use atlaskit without import:
<template lang="pug"> div Button(appearance="primary" @click="greet") wow </template> <script> export default { methods: { greet() { alert('Greetings from an atlaskit button!') } } } </script>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
for those who struggling with
nuxtjs
, here is my solution:create a plugin at
plugins/atlaskit.js
:and then reference it in
nuxt.config.js
:then just use atlaskit without import:
The text was updated successfully, but these errors were encountered: