Skip to content

JPROT Catalog
Home All elements Install
JPROT CatalogHomeAll elementsInstall

On this page

InstallUse it as a homepage sectionUse it inside a pageProps
JPROT CatalogHomeAll elementsInstall

On this page

InstallUse it as a homepage sectionUse it inside a pageProps

MediaVideo

thumbnail with a play button that swaps in the embed.

Live preview

▶
Product tour

Install

From your site folder, run:

jprot add MediaVideo

That downloads the self-contained component into theme/components/MediaVideo.js, where it is picked up automatically — the same way as any built-in component. To remove it later, just delete that file.

Use it as a homepage section

Add an entry to the sections: list in jprot.config.js:

sections: [
  { component: 'MediaVideo', title: 'MediaVideo' },
]

Use it inside a page

On its own line in any Markdown file, passing the props:

:::MediaVideo title="Product tour" thumb="https://picsum.photos/seed/vid/640/360" href="https://www.youtube.com/watch?v=dQw4w9WgXcQ"

Props

PropTypeNote
titlestringcaption
thumbstringthumbnail URL
hrefstringvideo URL to open

↩ Back to all elements

© 2026 JPROT Catalog