0.3.0 • Published 11 months ago

v-rap v0.3.0

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months ago

Do you know that a good framework designer can also be a good rapper?

Introduction

A Vue3 lib to help you embed the rap video of the author of Vue.js

Preview

Install

# via npm
npm install --save v-rap

# via yarn
yarn add v-rap

# via pnpm
pnpm install v-rap

Rap component

<script setup>
import { Rap } from 'v-rap'
</script>

<Rap source="bilibili" :ratio="16 / 9" />

Rap directive

<script setup>
import { vRap } from 'v-rap'
</script>

<div v-rap="{ source: 'bilibili', ratio: 16 / 9 }" />

Rap component props & v-rap directive values

  • source
    The play source. Can be 'bilibili' or 'youtube'.
    Default is 'bilibili'
  • ratio
    The video ratio. Default is 16 / 9.
    The width of video container is 100%. So just set the width of parent container to change the width.
    And the height can be auto computed based on ratio.

LICENSE

MIT

0.3.0

11 months ago

0.2.0

1 year ago

0.1.0

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago