1.1.4 • Published 1 year ago

@embedz/svelte v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

embedz

NPM MIT License

Easy, dependency free embeds for Svelte and Vue.

Demo

Installation

# npm
npm install @embedz/svelte
# pnpm
pnpm install @embedz/svelte
# yarn
yarn add @embedz/svelte

Usage

<script>
  import { Dailymotion, Vimeo, YouTube } from "@embedz/svelte";
</script>

<YouTube 
  id="C7eGZUBdL4g" 
  posterquality="max"
/>

Youtube

id

type: string

<YouTube id="C7eGZUBdL4g" />

You can also pass in the full URL for the video

<YouTube id="https://youtu.be/C7eGZUBdL4g" />

poster

type: string

<YouTube
  id="C7eGZUBdL4g"
  poster="https://picsum.photos/1280/720"
/>

posterquality

type: "max" | "high" | "default" | "low"

default: "default"

<YouTube
  id="C7eGZUBdL4g"
  posterquality="low"
/>

params

type: string

<YouTube
  id="C7eGZUBdL4g"
  params="controls=0&mute=1"
/>

ratio

type: string

<YouTube
  id="C7eGZUBdL4g"
  ratio="4:3"
/>

title

type: string

<YouTube
  id="C7eGZUBdL4g"
  title="Rock the House"
/>

Vimeo

id

type: string

<Vimeo id="32001208" />

You can also pass in the full URL for the video

<Vimeo id="https://vimeo.com/32001208" />

poster

type: string

<Vimeo
  id="32001208"
  poster="https://picsum.photos/1280/720"
/>

posterquality

type: "max" | "high" | "default" | "low"

default: "default"

<Vimeo
  id="32001208"
  posterquality="low"
/>

params

type: string

<Vimeo
  id="32001208"
  params="controls=0&mute=1"
/>

ratio

type: string

<Vimeo
  id="32001208"
  ratio="4:3"
/>

title

type: string

<Vimeo
  id="32001208"
  title="Earth"
/>

Dailymotion

id

type: string

<Dailymotion id="x8e31lf" />

You can also pass in the full URL for the video

<Dailymotion id="https://dai.ly/x8e31lf" />

poster

type: string

<Dailymotion 
  id="x8e31lf"
  poster="https://picsum.photos/1280/720"
/>

posterquality

type: "max" | "high" | "default" | "low"

default: "default"

<Dailymotion 
  id="x8e31lf"
  posterquality="low"
/>

params

type: string

<Dailymotion 
  id="x8e31lf"
  params="mute=true&loop=false"
/>

ratio

type: string

<Dailymotion 
  id="x8e31lf"
  ratio="4:3"
/>

title

type: string

<Dailymotion 
  id="x8e31lf"
  title="Dolby Vision"
/>

Development

git clone https://github.com/embedz/embedz.git
cd embedz/packages/svelte
npm install
npm run dev -- --open

License

Licensed under the MIT license.

Contributors

Contributions are welcome! Please feel free to submit a Pull Request.

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.48

1 year ago

1.0.47

1 year ago

1.0.46

1 year ago

1.0.45

1 year ago

1.0.44

1 year ago

1.0.43

1 year ago

1.0.42

1 year ago

1.0.41

1 year ago

1.0.40

1 year ago

1.0.39

1 year ago

1.0.38

1 year ago

1.0.37

1 year ago

1.0.36

1 year ago

1.0.35

1 year ago

1.0.34

1 year ago

1.0.33

1 year ago

1.0.32

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago