Skip to content

Audio Player

An inline player for podcast clips, music, voice reels and sound design: a play button, a seek slider over an optional precomputed waveform and the time, on a native audio element, with one track playing at a time.

Installation

pnpm dlx shadcn@latest add @portfolio-kit/audio-player
First time? Add the @portfolio-kit registry to components.json
components.json
{
  "registries": {
    "@portfolio-kit": "https://www.parthjadhav.com/products/portfolio-kit/r/{name}.json"
  }
}

Usage

Examples

Inline clip

A compact pill for a podcast or interview clip inside an article, with the transcript linked below.

Playlist

A reel of several cues in plain rows: one plays at a time, and the next starts when a track ends.

API Reference

Used in