YouTube Embed
A responsive YouTube embed with autoplay, looping, customizable controls, and an optional masked presentation.
The video begins automatically when autoplay is enabled. Since the embed is intended for decorative or showcase content, pointer interaction is disabled by default.
Options you can pass to customize this component.
videoId*stringThe YouTube video ID to embed. For example, 'DUV0KxkaIQU'.
autoPlaybooleanStarts playback automatically when the component mounts.
mutebooleanMutes the video. Autoplay generally requires this to be enabled.
controlsbooleanShows or hides the YouTube player controls.
loopbooleanRepeats the video continuously after it finishes.
modestBrandingbooleanReduces YouTube branding within the player when supported.
relbooleanShows related videos after playback ends when enabled.
aspectRatiostringCSS aspect-ratio applied to the container. Accepts any valid aspect ratio value.
maskbooleanApplies the built-in radial mask effect to the embedded video.
classNamestringAdditional classes merged onto the outer container.
iframeClassNamestringAdditional classes merged onto the iframe element.
npx shadcn add amitgajare2/ariseui/youtube-embed1