A Vue 3 component for embedding tweets in your Vue.js applications. This is a Vue port of react-tweet.
- 🚀 Fast loading - SSR-ready, no external scripts or iframes
- 💪 Native Vue components - no dependency on Twitter's widgets.js
- 🎨 Customizable - style the tweet component to match your app's design
- Does NOT require using the Twitter API
npm install vue-tweet-pure
# or
yarn add vue-tweet-pure
# or
pnpm add vue-tweet-pure
<script setup>
import { Tweet } from 'vue-tweet-pure'
import 'vue-tweet-pure/style.css' // include default twitter component styles
</script>
<template>
<Tweet id="1234567890" />
</template>
Defining TwitterComponents
to override default components or using vue-tweet-pure/api
to build your own tweet component is also possible. I'm not done with the documentation yet, but you can check out the react-tweet documentation for now. The API is almost same.
NOTE: Server component support is not implemented yet.
Contributions are welcome! We're using turbo monorepo to manage the packages. To get started:
- Clone the repository
- Install dependencies:
pnpm i --frozen-lockfile
- Start the development server:
pnpm dev --filter vue-tweet-pure
for basic playground with Vitepnpm dev --filter vitepress-app
for more complex example with VitePress, where you can easily toggle light/dark to test the component in different themes
This package is a Vue 3 port of react-tweet by Vercel. Special thanks to their team for the original implementation and API support.
MIT © 2025 Locietta