An open API service indexing awesome lists of open source software.

https://github.com/blackman99/v-rap

A Vue3 lib to help you embed the rap video of the author of Vue.js
https://github.com/blackman99/v-rap

rap vue3 vuejs

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          




Sveltepress




V Rap




> 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](https://blackman99.github.io/v-rap/)

## Install

```sh
# via npm
npm install --save v-rap

# via yarn
yarn add v-rap

# via pnpm
pnpm install v-rap
```

## Rap component

```vue

import { Rap } from 'v-rap'

```

## Rap directive

```vue

import { vRap } from 'v-rap'


```
## 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](./LICENSE)