Componentmedia1.55 KB gzipZero dependencies
VideoPlayer
Video frame with sprocket styling, hover fade-in controls, progress bar with scrub preview
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add video-playerOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { VideoPlayer } from "@/components/ui/video-player" <VideoPlayer title="Movie Title" duration={125} poster={posterUrl} />Source code
video-player.tsx + 1 helperZero 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 />| Prop | Type | Description |
|---|---|---|
| title | string | Primary heading or title text. (Default: "Video") |
| duration | number | Configures duration. (Default: 120) |
| src | string | Configures src. |
| poster | React.ReactNode | Configures poster. |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |