SearchCtrlK

  • ↑↓navigate
  • ↵open
  • escclose

Can’t find it? Contact us

On this page

QueueList

A music player's queue as headed lists of compact rows.

Now playing

  1. Last Train BloomNeon Orchard4:02

Next up

  1. ZestNeon Orchard2:55
  2. Sugar & StaticNeon Orchard, Velvet Cartography3:27
  3. Grove at 2AMNeon Orchard3:49
View code
tsx
<QueueList.Section title="Now playing">
	<QueueList.Item current title="Last Train Bloom" subtitle="Neon Orchard" duration={242} />
</QueueList.Section>
<QueueList.Section title="Next up" empty="Nothing else queued">
	<QueueList.Item
		title="Zest"
		subtitle="Neon Orchard"
		duration={175}
		action={<button type="button" aria-label="Play Zest" />}
	/>
</QueueList.Section>

Installation

An ordinary dependency: install it, import the theme once, and import the component where it is used.

Terminal
npm add @sdxc/ui remix
typescript
import "@sdxc/ui/theme.css";

Usage

typescript
import { QueueList } from "@sdxc/ui/audio";

The queue's parts: QueueList.Section for a headed group, QueueList.Item for one track. A panel stacks a "Now playing" section with one item over a "Next up" section.

Props

Read from the component's own types, so every prop, every default and every allowed value is listed.

@sdxc/ui

Can’t find it? Contact us