Docs
Video Player
A video player component for playing videos
Installation
pnpm dlx shadcn@latest add https://devkit.kiron.dev/k/video-player
Usage
import { VideoPlayer } from "@/components/ui/video-player"
export function Component() {
return (
<div>
<VideoPlayer
src="https://youtu.be/L85CCntKiS8"
poster="https://i.ytimg.com/vi/L85CCntKiS8/maxresdefault.jpg"
/>
</div>
)
}Props
| Prop | Type | Default | Description |
|---|---|---|---|
src | string | The URL of the video to play | |
poster | string | The URL of the video poster image |