Important
Replaced by @arraypress/waveform-react 2.0. Import from @arraypress/waveform-react/bar instead — one package per framework, with a sub-path per component (repo, migration guide).
This repository is archived and the npm package is deprecated; its 1.x releases keep working.
React components for the Spotify-style persistent bottom-bar audio player. A singleton <WaveformBar> you mount once, plus polymorphic <WaveformBarTrigger> play/queue buttons you drop anywhere.
npm install @arraypress/waveform-bar-react @arraypress/waveform-bar @arraypress/waveform-player reactimport { WaveformBar, WaveformBarTrigger } from '@arraypress/waveform-bar-react';
function App() {
return (
<>
{/* Render once in your layout */}
<WaveformBar config={{ persist: true, continuous: true }} />
{/* Trigger buttons anywhere */}
<WaveformBarTrigger url="/audio/track.mp3" title="My Track" artist="Producer" />
</>
);
}Full guides, the props reference, and the imperative API live on the docs site.
React guide — install, props, the imperative API, and SSR notes. All four React wrappers (player / bar / playlist) are on that page.
MIT © ArrayPress