Components
Component YouTube
A heading and a line of text with a YouTube video that loads only when played, stacked or side by side: Lite YouTube as a section of its own.
Made for the page builder — try it there
Try it in the page builderBlocks come with Pro and Ultimate
Preview every block now, in any theme and at any width. The source, the install command and your registry token come with a Pro or Ultimate plan.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | a house tour heading | The block's h2. |
| lead | string | a line about the tour | A line under the heading; empty for none. |
| video | { url: string; title: string; poster: string } | a villa tour | A YouTube link (watch, youtu.be or embed) or its id, the video's title (for screen readers and the player) and your own poster picture. |
| playLabel | string | "Play the video" | The play button's accessible name. |
| layout | "stacked" | "split" | "card" | "stacked" | stacked: the text centred above a wide video. split: the text beside the video from 1024px (two fifths to three). card (Compose Digi): the video alone in the container, the heading visually hidden, taller on phones. |
| overlay | boolean | false | Play in a dialog over the page (lite-youtube overlay): a black backdrop, Escape or a click outside closes it. |
| play | "youtube" | "circle" | "youtube" | circle: a dark veil on the poster and a round play button that grows on hover. |
| caption | string | — | A centred white line over the poster's lower part. |
| className | string | — | Classes for the <section>. |
- Nothing is requested from YouTube before the click: the poster is your own picture, and only the play button loads the player.
- The video is 16:9 and rounds to the theme's radius.











