Componentmedia0.71 KB gzipZero dependencies
Playlist
Track rows with equalizer bars for active track, title/artist, duration, and slide-in marker
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add playlistOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { Playlist } from "@/components/ui/playlist" <Playlist tracks={tracks} activeId={activeId} onPlay={handlePlay} />Source code
playlist.tsx + 1 helperZero 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 />| Prop | Type | Description |
|---|---|---|
| tracks | Track[] | Configures tracks. (Default: []) |
| activeId | string | Configures active id. |
| onPlay | (track: Track) => void | Callback invoked on play. |
| className | string | Optional Tailwind or custom CSS classes merged with component styles. |