Important
Replaced by @arraypress/waveform-astro 2.0. Import from @arraypress/waveform-astro/player 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.
Typed Astro component wrapper for @arraypress/waveform-player.
Every library option as a prop, data-* serialisation handled for you, plus optional lazy-mount for large grids.
npm install @arraypress/waveform-player-astro @arraypress/waveform-player---
import WaveformPlayer from '@arraypress/waveform-player-astro';
---
<WaveformPlayer src="/track.mp3" title="My Song" artist="The Artist" waveformStyle="mirror" />Full setup, every prop, the imperative API and SSR notes live on the docs site.
Astro guide — install, props, the imperative API, and SSR notes. All four Astro wrappers (player / bar / playlist) are on that page.
MIT © ArrayPress