svelte-audio-ui Svelte Themes

Svelte Audio Ui

A set of accessible and composable Audio UI components.

Svelte Audio UI

A set of accessible, composable audio UI components for Svelte.
Built on top of shadcn-svelte. Copy, paste, and own.

Docs · Particles · Issues

License Stars Svelte 5 SvelteKit TypeScript shadcn-svelte Copy Paste Friendly AI Ready

What is this?

Svelte Audio UI is a collection of audio-focused UI components that you install via the shadcn-svelte CLI. No npm package — you own the code.

Components include: AudioPlayer, AudioQueue, AudioTrack, AudioProvider, Knob, Fader, Slider, XYPad, SortableList, and more.

Quick Start

Make sure you have shadcn-svelte initialized, then:

npx shadcn-svelte@latest add https://svelte-audio-ui.vercel.app/r/player.json

Add AudioProvider to your root layout:

<script lang="ts">
  import { AudioProvider } from "$lib/components/ui/audio/provider/index.js";
  let { children } = $props();
</script>

<AudioProvider>{@render children()}</AudioProvider>

Use a component:

<script lang="ts">
  import * as AudioPlayer from "$lib/components/ui/audio/player/index.js";
</script>

<AudioPlayer.Root>
  <AudioPlayer.ControlBar>
    <AudioPlayer.Play />
    <AudioPlayer.SeekBar />
    <AudioPlayer.Volume />
  </AudioPlayer.ControlBar>
</AudioPlayer.Root>

Tech Stack

  • Svelte 5 + SvelteKit
  • TypeScript
  • Tailwind CSS v4
  • bits-ui · shadcn-svelte · svelte-dnd-action

Contributing

See CONTRIBUTING.md.

Acknowledgements

Inspired by audio-ui, a composable audio UI system for React.

This project brings similar ideas into the Svelte ecosystem, adapting the original headless and provider-based architecture for Svelte.

If you're working with React, check out the original project: audio-ui

License

MIT © ddtamn

Top categories

Loading Svelte Themes