A library of ready-to-play sound effects for React applications.
npm install react-sounds
Hundreds of ready-to-play sound effects for your React applications
Add delight to your UI with just a few lines of code
Demo âĒ
Documentation âĒ
Sound Explorer
- ðŠķ Lightweight: Only loads JS wrappers, audio files stay on CDN until needed
- ð Lazy Loading: Sounds are fetched only when they're used
- ðĶ Offline Support: Download sounds for self-hosting with the included CLI
- ðŊ Simple API: Intuitive hooks and components
- ð Extensive Library: Hundreds of categorized sounds (UI, notification, game)
``bash`
npm install react-sounds howleror
yarn add react-sounds howler
`tsx
import { useSound } from 'react-sounds';
function Button() {
const { play } = useSound('ui/button_1');
return (
);
}
``
For complete documentation including advanced usage, visit reactsounds.com/docs
Try the interactive demo at reactsounds.com
Browse and play all available sounds at reactsounds.com/sounds
Works in all modern browsers that support the Web Audio API (Chrome, Firefox, Safari, Edge)
MIT ÂĐ Aedilic Inc.
---
Made with âĨ by Aedilic Inc