YouTube
The <ShowcaseYouTube>
component can be used to showcase YouTube videos.
Import
Usage
Specify a list of YouTube videos to display using the entries
prop.
Each entry should at least specify a title and link to the video while an optional description can be provided.
The above code generates the following on the page:
Props
The <ShowcaseYouTube>
component accepts the following props:
entries
required
type: ShowcaseYouTubeCardProps[]
The list of YouTube videos to display. See the Usage section for an example and the entry definition for more details.
Entry
Each YouTube video entry should be an object with the following properties:
href
required
type: string
The link to the YouTube video to showcase.
title
required
type: string
The title of the YouTube video.
description
type: string
An optional description for the YouTube video.