Skip to content

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 builder

Blocks 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

PropTypeDefaultDescription
titlestringa house tour headingThe block's h2.
leadstringa line about the tourA line under the heading; empty for none.
video{ url: string; title: string; poster: string }a villa tourA 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.
playLabelstring"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.
overlaybooleanfalsePlay 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.
captionstring—A centred white line over the poster's lower part.
classNamestring—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.

Be the first to know

Get new templates and components first

One short email when we release a template or a free component. No spam — unsubscribe anytime.

We use your email only for Framebrick updates. Privacy policy