Ambient Video

Chrome-less background video for heroes and section backgrounds: autoplaying, muted and looping, with a slot for the content drawn over it.

UIambient-videoView JSON

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.

Preview

Installation

Add the item with the shadcn CLI, or copy the source manually.

pnpm dlx shadcn@latest add litingyes/blocove/ambient-video

Requires a shadcn/ui project set up with Base UI primitives. Blocove is developed against the b0 preset, but it installs no base config or theme tokens: your own preset, fonts and colors stay in place.

Or install from the namespace after adding the registry: npx shadcn@latest add @blocove/ambient-video

API Reference

Props accepted by the exported components.

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.

PropTypeDefault
srcstringRequired
posterstring-
aspectRatio'video' | 'classic' | 'square' | 'portrait' | 'wide' | 'auto''video'
autoPlaybooleantrue
classNamestring-
styleCSSProperties-
childrenReactNode-