Button Sounds: Tactile Click and Switch Sounds for UI ππ
Josh W. Comeauβs free Button Sounds library: 50+ studio-recorded physical button sounds with multisampling and a lightweight JS/React package.

Josh W. Comeau has released a great free library called Button Soundsβa collection of 50+ studio-recorded sounds of physical buttons, mechanical keyboard switches, gamepads, mice, and toggle switches, complete with a ready-to-use JS/React package for the web.
Usually, UI sound effects sound cheap and get annoying fast because the exact same βflatβ sample plays on every click. In the real world, a button never sounds the same twiceβand Josh solved this with multisampling:
- Lifelike variation: each of the 50+ sounds includes 8 to 16 individual samples (recorded separately for
pressandrelease). On every click, the library picks a random take, and you can add subtle pitch randomization (pitchVariation)βmaking clicks feel organic and tactile. - Minimal code and footprint: the core
button-soundspackage is only ~3 KB gzipped (lazily loadinghowlerat ~10 KB under the hood). Audio sprites are fetched from the jsDelivr CDN by default only for the sounds you actually use (though you can also download the MP3 or lossless WAV files and self-host them). - Simple API and React hooks: to get started quickly, just call
wireUp(button, 'hi75-soft')βit preloads the sound and cleanly handles press and release events (even if the pointer leaves the button before release). For React,useButtonSoundsanduseImperativeButtonSoundshooks are included out of the box. - Easter eggs for geeks: a built-in
lofimode with a bitcrusher for a crunchy 8-bit NES-style sound, plus a hidden mini-game on the project page that rewards a discount on the authorβs courses.
π Try the interactive playground and read the docs: buttons.joshwcomeau.com (opens in new tab)
How do you feel about audio feedback in web interfaces? A nice touch for micro-interactions, or should any web sound without an explicit player be an instant no? π