Componentmedia0.61 KB gzipZero dependencies

Thumbnail Strip

Horizontal thumbnail strip with animated selection frame.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

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

npx bigbullui add thumbnail-strip

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { ThumbnailStrip } from "@/components/ui/thumbnail-strip"; <ThumbnailStrip />

Source code

thumbnail-strip.tsx + 1 helper

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

tsxthumbnail-strip.tsx50 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface ThumbnailItem {  id: string;  src: string;  alt?: string;} export interface ThumbnailStripProps extends React.HTMLAttributes<HTMLDivElement> {  images: ThumbnailItem[];  value?: string;  defaultValue?: string;  onValueChange?: (id: string) => void;} 

Props

Interactive Prop Playground

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

tsx3 lines
import { ThumbnailStrip } from "@/components/ui/thumbnail-strip"; <ThumbnailStrip />
PropTypeDescription
imagesThumbnailItem[]Configures images. (Default: [])
valuestringControlled value.
defaultValuestringInitial value when uncontrolled.
onValueChange(id: string) => voidCallback invoked on value change.