JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q53864F
  • License MIT

An interactive audio package for React

Package Exports

  • @clxrity/react-audio
  • @clxrity/react-audio/index.css

Readme

@clxrity/react-audio

A react audio player component library.

coverage

MIT license npm module downloads

view on npm BUILD


Node version

Peer Dependencies:

react react-dom

npm i @clxrity/react-audio
pnpm add @clxrity/react-audio
yarn add @clxrity/react-audio

Docs Changelog Contribute


Dynamic import example with Next.js

"use client"; // (REQUIRED)
import dynamic from "next/dynamic";

const Player = dynamic(
  () => import("@clxrity/react-audio").then((mod) => mod.Player),
  { ssr: false },
);

export default function Component() {
  return <Player src="/loop.wav" />;
}