Componentmedia1.55 KB gzipZero dependencies

VideoPlayer

Video frame with sprocket styling, hover fade-in controls, progress bar with scrub preview

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add video-player

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { VideoPlayer } from "@/components/ui/video-player" <VideoPlayer title="Movie Title" duration={125} poster={posterUrl} />

Source code

video-player.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxvideo-player.tsx210 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface VideoPlayerProps extends React.HTMLAttributes<HTMLDivElement> {  title?: string;  duration?: number;  src?: string;  poster?: React.ReactNode;  className?: string;} export function VideoPlayer({  title = "Video",  duration = 120,  src,  poster,

Props

Interactive Prop Playground

Tweak parsed AST props below to generate ready-to-paste JSX.

tsx3 lines
import { VideoPlayer } from "@/components/ui/video-player"; <VideoPlayer />
PropTypeDescription
titlestringPrimary heading or title text. (Default: "Video")
durationnumberConfigures duration. (Default: 120)
srcstringConfigures src.
posterReact.ReactNodeConfigures poster.
classNamestringOptional Tailwind or custom CSS classes merged with component styles.