Skip to content
项目

ddtamn/svelte-audio-ui

在 GitHub 查看

关于

A set of accessible and composable Audio UI components.

设计与媒体

这些数字如何统计

实测星标增长

24小时
0
7天
+2
15天
+4
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文
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

探索相关项目

加载中…