QueueList
A music player's queue as headed lists of compact rows.
Now playing
- Last Train BloomNeon Orchard4:02
Next up
- ZestNeon Orchard2:55
- Sugar & StaticNeon Orchard, Velvet Cartography3:27
- Grove at 2AMNeon Orchard3:49
View code
<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.
npm add @sdxc/ui remiximport "@sdxc/ui/theme.css";Usage
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.