Componentmedia0.71 KB gzipZero dependencies

Playlist

Track rows with equalizer bars for active track, title/artist, duration, and slide-in marker

Preview

Live Preview
Open ↗

Installation

Tokens guide →

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

npx bigbullui add playlist

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { Playlist } from "@/components/ui/playlist" <Playlist tracks={tracks} activeId={activeId} onPlay={handlePlay} />

Source code

playlist.tsx + 1 helper

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

tsxplaylist.tsx91 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface Track {  id: string;  title: string;  artist?: string;  duration?: number;} export interface PlaylistProps {  tracks: Track[];  activeId?: string;  onPlay?: (track: Track) => void;  className?: string;}

Props

Interactive Prop Playground

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

tsx3 lines
import { Playlist } from "@/components/ui/playlist"; <Playlist />
PropTypeDescription
tracksTrack[]Configures tracks. (Default: [])
activeIdstringConfigures active id.
onPlay(track: Track) => voidCallback invoked on play.
classNamestringOptional Tailwind or custom CSS classes merged with component styles.