Componentmedia0.72 KB gzipZero dependencies

VideoThumbnail

Poster frame with duration badge, play overlay circle that scales on hover with ripple ring, and title strip

Preview

Live Preview
Open ↗

Installation

Tokens guide →

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

npx bigbullui add video-thumbnail

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { VideoThumbnail } from "@/components/ui/video-thumbnail" <VideoThumbnail poster={poster} duration={120} title="Video Title" />

Source code

video-thumbnail.tsx + 1 helper

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

tsxvideo-thumbnail.tsx114 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface VideoThumbnailProps {  poster?: React.ReactNode;  duration?: number;  title?: string;  className?: string;} export function VideoThumbnail({  poster,  duration,  title,  className,  ...props

Props

Interactive Prop Playground

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

tsx3 lines
import { VideoThumbnail } from "@/components/ui/video-thumbnail"; <VideoThumbnail />
PropTypeDescription
posterReact.ReactNodeConfigures poster.
durationnumberConfigures duration.
titlestringPrimary heading or title text.
classNamestringOptional Tailwind or custom CSS classes merged with component styles.