Componentmedia0.61 KB gzipZero dependencies
Thumbnail Strip
Horizontal thumbnail strip with animated selection frame.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add thumbnail-stripOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { ThumbnailStrip } from "@/components/ui/thumbnail-strip"; <ThumbnailStrip />Source code
thumbnail-strip.tsx + 1 helperZero 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 />| Prop | Type | Description |
|---|---|---|
| images | ThumbnailItem[] | Configures images. (Default: []) |
| value | string | Controlled value. |
| defaultValue | string | Initial value when uncontrolled. |
| onValueChange | (id: string) => void | Callback invoked on value change. |