Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

fix: add plays inline for videos

Dillion Vermaef3bfdc84c77
diff --git a/components/sidebar-cta.tsx b/components/sidebar-cta.tsx
index a87c20d2..70d49e04 100644
--- a/components/sidebar-cta.tsx
+++ b/components/sidebar-cta.tsx
@@ -24,6 +24,7 @@ export default function SidebarCTA() {
<video
autoPlay
loop
+ playsInline
muted
src="/startup-template-demo.mp4"
className="w-full overflow-hidden rounded-xl shadow-2xl"
diff --git a/registry/components/example/hero-video-demo.tsx b/registry/components/example/hero-video-demo.tsx
index 7758d338..35e0e4bc 100644
--- a/registry/components/example/hero-video-demo.tsx
+++ b/registry/components/example/hero-video-demo.tsx
@@ -42,6 +42,7 @@ export default function HeroVideoDemo() {
</HeroVideoAction>
<video
autoPlay
+ playsInline
className="rounded-xl dark:border"
playsInline
src="https://cdn.magicui.design/globe.mp4"