# Ambient Video Chrome-less background video for heroes and section backgrounds: autoplaying, muted and looping, with a slot for the content drawn over it. ## Installation ```bash npx shadcn@latest add litingyes/blocove/ambient-video ``` The background preset mutes and loops the video itself, so it can autoplay without a gesture and needs no controls. The element is decorative: put the meaning in the content you render on top, and pass `autoPlay={false}` when a visitor asks for reduced motion. ## API Reference ### AmbientVideo A chrome-less background video: autoplaying, muted and looping, with a slot for the content drawn over it. The slot renders next to the player, so give that content its own positioning. | Prop | Type | Default | | --- | --- | --- | | `src` | `string` | `Required` | | `poster` | `string` | - | | `aspectRatio` | `'video' | 'classic' | 'square' | 'portrait' | 'wide' | 'auto'` | `'video'` | | `autoPlay` | `boolean` | `true` | | `className` | `string` | - | | `style` | `CSSProperties` | - | | `children` | `ReactNode` | - | ## Registry dependencies - `litingyes/blocove/media-theme` Namespace: `npx shadcn@latest add @blocove/ambient-video`