Component: VideoEmbed¶
Purpose¶
Easily embeds a video player from YouTube or Vimeo into your content.
When to Use¶
- Showing product demos.
- Including tutorials or walkthroughs.
- Embedding webinars or presentations.
How to Use (Options / Props)¶
Option (prop) |
Description | Required? | Example Value(s) |
|---|---|---|---|
src |
The full URL of the YouTube or Vimeo video. | Yes | "https://www.youtube.com/watch?v=...", "https://vimeo.com/..." |
title |
A description of the video for accessibility. | Yes | "Product Demo Video", "Tutorial on X" |
Example MDX Usage¶
Embedding a YouTube Video:
Embedding a Vimeo Video: