• Meet OMA at Smart City Expo World Congress • Barcelona • 3–5 November 2026 • Hall 3, Street F, Stand 90 •
• Live LwM2M demos • Water 2.0 panel • Smart City SIG sessions •

💧 OMA Utilities WG • Water 2.0 has launched • Utility Membership •

🏙️ OMA Conformance Tool • Apply for Early Access •


Video

Usage

The ShVideo constructor creates a display format for embedding a video with customizable styles.

Basic


::ShVideo
---
src: "https://www.youtube.com/watch?v=8A5AMiskxvQ"
---
::

Advanced settings

An example with customized ui attributes for enhanced display:

::ShVideo
---
ui:
    wrapper: "shadow-2xl mx-auto max-w-screen-lg" # custom styles for the wrapper
src: "https://www.youtube.com/watch?v=8A5AMiskxvQ"
---
::

Props

PropTypeDefaultDescription
descriptionstring""Note for content writers. It is not rendered on the website.
srcrequiredstring""The source URL of the video to be embedded. This property is mandatory.
uiRecord<string, any>–Overrides the default classes of the UI config below. Values are merged with the defaults using tailwind-merge.

Slots

This component has no slots.

UI config

Default classes of every styled element. Override any key through the ui prop.

KeyDefault classesDescription
wrappermx-5 ring-1 ring-neutral-300 dark:ring-neutral-700Defines the overall styling for the container that holds the video.