Componentmedia0.85 KB gzipZero dependencies

Video List

Video results list: thumbnails, duration badges, channel names.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

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

npx bigbullui add video-list

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { VideoList } from "@/components/ui/video-list"; <VideoList />

Source code

video-list.tsx + 1 helper

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

tsxvideo-list.tsx53 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface VideoResult {  id: string;  title: string;  channel: string;  duration: string;  views?: string;  thumbnail?: string;} export interface VideoListProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onSelect"> {  videos: VideoResult[];  onSelect?: (id: string) => void;}

Props

PropTypeDescription
videosVideoResult[]Configures videos. (Default: [])
onSelect(id: string) => voidCallback invoked on select.