Componentmedia0.85 KB gzipZero dependencies
Video List
Video results list: thumbnails, duration badges, channel names.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add video-listOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { VideoList } from "@/components/ui/video-list"; <VideoList />Source code
video-list.tsx + 1 helperZero 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
| Prop | Type | Description |
|---|---|---|
| videos | VideoResult[] | Configures videos. (Default: []) |
| onSelect | (id: string) => void | Callback invoked on select. |