Svelte 5 component wrapper for @arraypress/waveform-player.
Typed props for every option, callback props, an exported imperative API, and SSR-safe mounting.
npm install @arraypress/waveform-player-svelte @arraypress/waveform-player svelteRequires
@arraypress/waveform-player1.27.0 or newer. The component loads the core library's/no-autoinitentry point, so that it never scans the page for markup it doesn't own — that subpath was added in 1.27.0. If you're upgrading this package on its own, bump the core alongside it.
<script lang="ts">
import { WaveformPlayer } from '@arraypress/waveform-player-svelte';
import '@arraypress/waveform-player/dist/waveform-player.css';
</script>
<WaveformPlayer url="/track.mp3" title="My Song" artist="The Artist" />Full props, the imperative API, styling, and framework guides live on the docs site.
Svelte guide — install, props, the imperative API, and SSR notes. All four Svelte wrappers (player / bar / playlist) are on that page.
MIT © ArrayPress