Components
Audio Player
Self-contained audio player UI over the native HTML5 element — play/pause, scrubbing, and volume.
Installation
npx shadcn@latest add https://ui.saasflare.io/r/audio-player.jsonpnpm add @saasflare/uiUsage
Loading…
"use client"import { AudioPlayer } from "@saasflare/ui"/** A styled audio player with play/pause, seek bar, and time display. */export function Demo() { return ( <div className="w-full max-w-md"> <AudioPlayer src="https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3" title="Episode 12 — Shipping faster with Saasflare" /> </div> )}Playlist
Loading…
"use client"import { AudioPlayer } from "@saasflare/ui"/** A stacked playlist of audio players — one row per track. */export function Demo() { const tracks = [ { title: "Intro — Why design systems win", src: "https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3" }, { title: "Tokens, themes, and palettes", src: "https://www.soundhelix.com/examples/mp3/SoundHelix-Song-2.mp3" }, { title: "Shipping the free tier", src: "https://www.soundhelix.com/examples/mp3/SoundHelix-Song-3.mp3" }, ] return ( <div className="flex w-full max-w-md flex-col gap-3"> {tracks.map((track) => ( <AudioPlayer key={track.src} src={track.src} title={track.title} /> ))} </div> )}API Reference
Prop
Type