Embedding Youtube Videos
Example
Usage
To use this component, simply add the following tag to your .mdx
file:
<youtube></youtube>
Parameters
Parameter | Type | Description | Notes | Required? |
---|---|---|---|---|
embedid | string | The id of the youtube video to embed. | Reference below for how to find the id of a youtube video. | Yes |
width | string | The width of the video. | Use pixels. Example 500px | No |
title | string | The title of the video. | N/A | No |
Example Usage
<youtube embedid="Idsag5z0nIY" width="400px" title="Importing Your World using Web File Management"></youtube>
How to Find the ID of a Youtube Video
The id of a youtube video is the string of characters after the v=
in the url of the video. For example, the id of the video https://www.youtube.com/watch?v=dQw4w9WgXcQ
is dQw4w9WgXcQ
.