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
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add video-thumbnailOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { VideoThumbnail } from "@/components/ui/video-thumbnail" <VideoThumbnail poster={poster} duration={120} title="Video Title" />Source code
video-thumbnail.tsx + 1 helperZero 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, ...propsProps
Interactive Prop Playground
Tweak parsed AST props below to generate ready-to-paste JSX.
tsx3 lines
import { VideoThumbnail } from "@/components/ui/video-thumbnail"; <VideoThumbnail />| Prop | Type | Description |
|---|---|---|
| poster | React.ReactNode | Configures poster. |
| duration | number | Configures duration. |
| title | string | Primary heading or title text. |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |