Vimeo

Embed a Vimeo video by numeric ID from the video URL.

Use <Vimeo> to embed a Vimeo video in your documentation. Pass the numeric video ID from the Vimeo URL; the component renders a responsive iframe pointed at player.vimeo.com.

mdx
<Vimeo id="22439234" />

Video ID

Copy the numeric ID from the end of the Vimeo URL. For example, https://vimeo.com/22439234 has ID 22439234.

Example

mdx
<Vimeo id="22439234" />

Properties

idstringrequired

The numeric ID of the Vimeo video to embed. This is the number at the end of the video URL, for example 22439234 from https://vimeo.com/22439234.

The component loads the player from https://player.vimeo.com/video/{id}.

mdx
<Vimeo id="22439234" />

videostringoptional

Legacy alias for id. Use id in new content; video is supported for backward compatibility with older pages.

When both are set, id is used.

mdx
<Vimeo video="22439234" />

Behavior

ConditionResult
id or video setRenders a responsive <iframe> at https://player.vimeo.com/video/{id}
Both id and video setid wins
Neither id nor video setRenders an empty <div>

The iframe uses a 16:9 aspect ratio, fills the content width, and has rounded corners. Full-screen viewing is enabled via allowFullScreen.

See also