ddtamn/svelte-audio-ui
Tentang
A set of accessible and composable Audio UI components.
Desain dan mediaPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- +2
- dalam 15 hari
- +4
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
Asli
A set of accessible, composable audio UI components for Svelte.
Built on top of shadcn-svelte. Copy, paste, and own.
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
Jelajahi proyek terkait
Memuat…