1.1.4 • Published 10 months ago

@embedz/svelte v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months 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

10 months ago

1.1.3

10 months ago

1.1.2

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.48

11 months ago

1.0.47

11 months ago

1.0.46

11 months ago

1.0.45

11 months ago

1.0.44

11 months ago

1.0.43

11 months ago

1.0.42

11 months ago

1.0.41

11 months ago

1.0.40

11 months ago

1.0.39

11 months ago

1.0.38

11 months ago

1.0.37

11 months ago

1.0.36

11 months ago

1.0.35

11 months ago

1.0.34

11 months ago

1.0.33

11 months ago

1.0.32

11 months ago

1.0.31

11 months ago

1.0.30

11 months ago

1.0.29

11 months ago

1.0.28

11 months ago

1.0.27

11 months ago

1.0.26

11 months ago

1.0.25

11 months ago

1.0.24

11 months ago

1.0.23

11 months ago

1.0.22

11 months ago

1.0.21

11 months ago

1.0.20

11 months ago

1.0.19

11 months ago

1.0.18

11 months ago

1.0.17

11 months ago

1.0.16

11 months ago

1.0.15

11 months ago

1.0.14

11 months ago

1.0.13

11 months ago

1.0.12

11 months ago

1.0.11

11 months ago

1.0.10

11 months ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago