npm install vue-twitter
import Vue from 'vue'
import twitter from 'vue-twitter'
Vue.use(twitter)
<template>
<twitter>
<a class="twitter-timeline" href="https://twitter.com/realDonaldTrump?ref_src=twsrc%5Etfw">Tweets by realDonaldTrump</a>
</twitter>
</template>
notice
<a class="twitter-timeline" href="https://twitter.c...
comes from https://publish.twitter.com/#
get your widget HTML code
from above link, and parse it as default slot(except the script tag).
<template>
<twitter>
<div slot="loading">loading .....</div>
<a class="twitter-timeline" href="https://twitter.com/realDonaldTrump?ref_src=twsrc%5Etfw">Tweets by realDonaldTrump</a>
</twitter>
</template>
import { twitter } from 'vue-twitter'
export default {
components: {
twitter
}
}
import twitter from 'vue-twitter/lib/twttr.js'
export default {
components: {
twitter
}
}