Audio
A styled audio player over native <audio> with play/pause, seek, volume, and mute controls.
Preview
Attributes
| Attribute | Type | Default | Description |
|---|---|---|---|
src | string | — | Audio URL |
autoplay | boolean | — | Start playing on load |
loop | boolean | — | Loop playback |
title | string | — | Optional track title display |
artist | string | — | Optional artist display |
Installation
pura is copy-paste and dependency-free. Load the whole library, or just this component.
<link rel="stylesheet" href="/pura/tokens.css">
<script type="module" src="/pura/lib/audio.js"></script> import "./pura/lib/audio.js";