Video Hero
A hero section with ambient video behind a gradient: a headline, supporting copy and calls to action over a looping muted clip.
Use a short, loopable clip: the preset mutes and loops it, so there is no audio to plan for. Keep the headline a real heading in your page outline, and let the actions be the buttons of your own design system.
Preview
Audio and video, built from small composable items
Every surface on this page is a registry item: the shell, the media, the playlist and the block itself. Install the ones you compose.
Installation
Add the item with the shadcn CLI, or copy the source manually.
pnpm dlx shadcn@latest add litingyes/blocove/video-heroRequires 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/video-hero
Usage
import { VideoHero } from "@/components/blocove/video-hero"
export function LandingHero() { return ( <VideoHero eyebrow="Blocove media" title="Audio and video, built from small composable items" description="Install the items you compose, in your own shadcn/ui project." src="/hero.mp4" poster="/hero-poster.jpg" actions={<Button>Get started</Button>} /> )}API Reference
Props accepted by the exported components.
VideoHero
A hero section with an ambient, looping video behind a dark gradient. The video is decorative; the headline carries the meaning. Installs the ambient video item and the badge it uses.
| Prop | Type | Default |
|---|---|---|
src | string | Required |
poster | string | - |
eyebrow | string | - |
title | string | Required |
description | string | - |
actions | ReactNode | - |
className | string | - |