Youtube Preview Card

YouTube preview card allows the embedding of a YouTube video with a thumbnail and basic information of the video with a link to the video.

Import the YoutubePreview component from the package.

import { YoutubePreview } from 'nxtu'

Use the component

<YoutubePreview 
    videoUrl="https://www.youtube.com/watch?v=xxxxxxxxxxx"
/>

Parameters

videoUrl : URL of the YouTube video

This plugin works based on oEmbed of YouTube.

Last updated