Video

Provides a styled video component with customizable UI controls.

0:00 / 0:00

Installation

pnpm dlx shadcn@latest add https://ui.booleanfields.com/r/video.json

Usage

import { Video } from "@/components/ui/video"
<Video
  src="https://your-video-source.mp4"
  poster="your-poster-image.jpg"
/>

Props

The Video component supports all standard HTML video attributes and enables playback controls by default; pass controls={false} to hide them

Examples

Default

0:00 / 0:00