svelte-music
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

Svelte Audio Player

This library provides reusable Svelte components focused on creating and controlling media playback experiences, powered by create-svelte.

Features

  • Track Component: Displays media track information.
  • Controls Component: Provides UI for media playback control.
  • Track List Store: Manages the list of tracks.
  • Add Track Function: Allows adding tracks dynamically to the store.

Demo

https://12b78208.svelte-music-5gc.pages.dev

Quickstart

  import { Controls } from "svelte-music";

  onMount(() => {
    trackList.set([
      {
        title: "The Way You Look Tonight",
        artist: "Frank Sinatra",
        file: "/music.mp3",
      },
    ]);
  });

Readme

Keywords

none

Package Sidebar

Install

npm i svelte-music

Weekly Downloads

1

Version

0.0.6

License

none

Unpacked Size

40.2 kB

Total Files

37

Last publish

Collaborators

  • ekrenzin