embedia-vue

A vue component package to embed videos such as TikTok, YouTube/Shorts, Twitter/X, Vimeo, and Dailymotion.
6,176 3
Install
npm install embedia-vue
Latest Version:2.0.0
Vue:3
License:MIT
Last Updated:Nov 9, 2025
Links: GitHub  ·  npm
Maintainer: dsilver

Logo

Embedia Vue

npm version Build Status Package Size Downloads License


Table of Contents

Description

Embedia Vue is an embed package for Vue which can embed from platforms like TikTok, YouTube/Shorts, Twitter/X, Vimeo and Dailymotion.

Framework Supported versions
Vue.js 3 & above

Release-notes

Major Changes:

v2.0.0

  • The maximum default width and height are 1366×768.
  • Embedding videos from Facebook and Instagram is deprecated.
  • All tests passed using Vue Test Utils. (Vitest)

Features

  • Easy to set-up and responsive.
  • Supports embedding one or more videos from platforms including TikTok, YouTube, YouTube Shorts, X, Dailymotion, and Vimeo.

Click here: Demo


Installation

To install the Embedia Vue, you can use the following npm command:

npm install embedia-vue

Embed-video

Attributes TikTok X
Required? width yes
Required? height yes
Required? fullscreen optional
Required? controls
Required? autoplay
Required? cssname optional optional
Required? clip yes yes


Attributes YouTube Vimeo Dailymotion
Required? width yes yes yes
Required? height yes yes yes
Required? fullscreen optional optional
Required? controls optional optional
Required? autoplay optional optional optional
Required? cssname optional optional optional
Required? clip yes yes yes

Width

You can copy and paste the following HD dimensions below:


Value Width and Height
1366×768 width: 1366, height: 768
854x480 width: 854, height: 480
640x360 width: 640, height: 360
426x240 width: 426, height: 240
256x144 width: 256, height: 144


Paradigm

  <EmbediaVue
    clip=""
    width=""
    height=""
    :autoplay="false"
    :fullscreen="false"
    :controls="true"
    cssname="rename-me-now"
  />

You can use any importing syntax script format:

<script setup>
import { EmbediaVue } from 'embedia-vue';
</script>

or

<script>
import { EmbediaVue } from 'embedia-vue';

export default {
  components: {
    EmbediaVue
  }
};
</script>

For global usage (main.js)

import { createApp } from 'vue';
import './style.css'; 
import App from './App.vue';
import router from './router';
import { EmbediaVue } from 'embedia-vue'; // Import global


createApp(App)
  .component('EmbediaVue', EmbediaVue) 
  .use(router) 
  .mount('#app');

If you choose global, you can use the code below:

<template>
  <EmbediaVue
    clip=""
    width=""
    height=""
  />
</template>
<style scoped>
</style>


Vue

<template>
  <EmbediaVue
    clip="https://www.youtube.com/watch?v=oEXFMGK7IC0"
    width="640"
    height="360"
    cssname="embed-clip"
  />
</template>

<script setup>
import { EmbediaVue } from 'embedia-vue';
</script>

<style scoped>
.embed-clip {
  border: 2px solid green;
}
</style>

Responsiveness


In your built-in default style.css ( body only )


Remove this: place-items: center;


body {
  margin: 0;
  display: block; 
  place-items: center; // Remove this code to make it responsive, if it exists.
  min-width: 320px;
  min-height: 100vh;
}

License

MIT

  • This library package is FREE. ❤️

Author

Demjhon Silver

Related Packages

embedplay-tiktok-vue

This package provides a flexible and easy way to integrate TikTok videos into yo...

3,810 2
embetty-vue

Embetty displays remote content like tweets or videos without compromising your...

7,633 12
@vueframe/vueframe

High performance, rich media embed components. For your site, built using Vue.

16,542 69
vue-plyr

A vue component for the plyr video & audio player.

399,216 783
@skjnldsv/vue-plyr

A vue component for the plyr video & audio player.

179,118 49

Version History

Version Released Vue License
2.0.0 ^3.0.0 MIT
1.2.5 ^3.0.0 MIT
1.2.3 ^3.0.0 MIT
1.2.2 ^3.0.0 MIT
1.2.0 ^3.0.0 MIT
Pre-releases (3)
Version Released Vue License
1.0.0-alpha.21 ^3.0.0 MIT
1.0.0-alpha.20 ^3.0.0 MIT
1.0.0-alpha.12 ^3.0.0 MIT