Embed Block

The Embed block allows you to display videos and social media posts directly on your page. It supports a variety of platforms and automatically selects the appropriate player based on the provided URL.

Syntax

Standard video

<Embed slots="video" />

https://your-media-link.com

Short-form video new

<Embed slots="video" short="true"/>

https://your-media-link.com

Optional playback attributes (loop, autoplay, nocontrols) apply to the same pattern: add them on the opening tag, then put the media URL on the following line.

<Embed slots="video" loop />

https://your-media-link.com
<Embed slots="video" nocontrols />

https://your-media-link.com
<Embed slots="video" autoplay />

https://your-media-link.com
<Embed slots="video" loop autoplay />

https://your-media-link.com

A self-closing tag with no space before /> (for example loop/>) is equivalent to loop />.

Parameters

You can combine attributes on the same opening tag (for example loop autoplay).

data-slots=text
When using a youtube.com/shorts/ URL, the block automatically detects it as a Short. Use short="true" explicitly when the URL does not include /shorts/ in the path.

Supported Platforms

The block automatically detects and handles links from the following sources:

Examples

Standard YouTube video

data-slots=video
https://www.youtube.com/embed/4haZJxpf9Bo?si=9Pfm0yJD_62ZQnqg

Short-form video

data-slots=video
data-short=true
https://www.youtube.com/embed/76hGc6mlSSA

YouTube Shorts URL

data-slots=video
https://youtube.com/shorts/BwjjMllBahU?si=NkufHO7QIoHbFELP

Hidden player controls

data-slots=video
data-nocontrols=
https://www.youtube.com/embed/4haZJxpf9Bo?si=9Pfm0yJD_62ZQnqg