Audio Preview

Basic usage

Shows an embedded audio preview with name, duration, and default actions.

Soft ping0:00 / 0:00
<script setup lang="ts"> import { NmorphAudioPreview } from "@nmorph/nmorph-ui-kit"; import { createSoftPingAudioSrc } from "~/utils"; const durationMs = 350; const audioSrc = ref(""); onMounted(() => { audioSrc.value = createSoftPingAudioSrc(durationMs); }); </script><template> <div class="audio-preview-basic-usage"> <NmorphAudioPreview :src="audioSrc" name="Soft ping" :duration-ms="durationMs" width="100%" /> </div> </template>

NmorphAudioPreview Api

Attributes

Slots

Expose

Events

Resolution is not supported

Open the documentation on a device with a screen size of at least 375px by 640px.