GitHub
Language
DocsPlayListAPI & Playground

API & Playground

The PlayList API stays intentionally focused. Pass grouped tracks by mood or category, then adjust autoplay, theme, or layout hooks without wiring Jukebox yourself.

type PlayListTrack = {  title: string;  artist: string;  videoId: string;}; type PlayListItem = {  title: string;  image?: string;  data: PlayListTrack[];}; type PlayListProps = {  playlist: PlayListItem[];  autoplay?: boolean;  showSeekBar?: boolean;  accentColor?: string;  theme?: "light" | "dark";  size?: "mini" | "compact" | "expanded";  defaultSize?: "mini" | "compact" | "expanded";  onSizeChange?: (size: "mini" | "compact" | "expanded") => void;  position?: "bottom-right" | "bottom-left" | "bottom-center" | "top-right" | "top-left" | "top-center";  offset?: number | { x: number; y: number };  portal?: boolean;  className?: string;};

Props

PropTypeNotes
playlistPlayListItem[]Required. Each item becomes a tab with an optional cover image and its own track list.
accentColorstringOptional. Overrides the built-in green accent used by the play button, active tabs, active tracks, and seek thumb.
autoplaybooleanOptional. Defaults to "false" and starts from the active tab's first track when enabled.
theme"dark" | "light"Optional. Supports "dark" and "light". Defaults to "dark".
classNamestringOptional. Use it to attach layout classes for inline, fixed, or custom positioned rendering.

Playground

The live preview below renders inline for docs only. Use it to compare the available light and dark themes, size modes, and accent colors while keeping the built-in tab navigation and player controls visible.

Theme
Size
Accent
Sparks
Coldplay
Chill
Chill
Playlists
Chill
Chill
9 tracks
Sparks
Coldplay
Sparks
Coldplay
1 / 9
0:000:00