Component packs › Groove › Playlist Reorder

Playlist Reorder

Drag a track and it lifts and leans with your hand while the rest slide out of the way; the track you hold previews quietly until you drop it.

Playlist Reorder is a playlist from Groove, a component pack with 8 components: Audio components with real sound, made live in the browser. Price: $2 for the whole pack.

Built with: spring reorder, held preview, Alt + arrows.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Playlist Reorder props

PropTypeDefaultDescription
tracksPlaylistTrack[]
onChange(order: PlaylistTrack[]) => void
theme'dark' | 'light'
autoplaybooleanShowcase mode: drags tracks into a new order and back until touched.

Methods on the ref

Use it in React

import PlaylistReorder from './PlaylistReorder';

<PlaylistReorder />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Groove

Good for: Audio player UI.