Audio Player
Audio Player: Interactive audio player with animated equalizer waveforms, spring play/pause morphs, volume controls, and scrubbing trackbar. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install Audio Player
npx motion-ui-skill add audio-playerComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxlucide-reactmotionreacttailwind-merge
Source files
Audio Player
Interactive audio player with animated equalizer waveforms, spring play/pause morphs, volume controls, and scrubbing trackbar. When
srcis omitted, it uses a visual timer demo. Inspired by Origin UI (Coss) and KeenThemes ReUI.
Install
npx motion-ui-skill add audio-player
Dependencies
clsxlucide-reactmotionreacttailwind-merge
Usage
"use client";
import { AudioPlayer } from "@/components/motion/audio-player";
export function AudioPlayerExample() {
return (
<div className="p-8 flex justify-center">
<AudioPlayer
title="Midnight City Serenade"
artist="Synthetic Dreams"
durationSeconds={195}
/>
</div>
);
}
Props
| Prop | Type | Default | Description |
|---|---|---|---|
title |
string |
Required | Audio track title. |
artist |
string |
undefined |
Performer or creator name. |
durationSeconds |
number |
184 |
Total audio duration in seconds. |
src |
string |
undefined |
Optional audio source URI. |
className |
string |
undefined |
Container classes. |