UI sound effects
72 interface sounds you can hear, made entirely in code with the Web Audio API, apart from 9 recorded ones. 24 are free and 48 are Pro, and every one plays here. Switch to the Mac style to hear the free ones re-voiced for a Mac or iPhone, across every component on the site. Tap an orb, then copy the line that does the same in your app.
Unlock all 48 Pro sounds
$49.99 a year, or $79.99 once.
72 sounds
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
- Pro
Pop
ActionsFreeUsed by Animated Tabs, Assign Picker, Box Spill, Command Palette, Dynamic Island, Emoji Reactions, Feedback Pill, Gooey Search Input and 5 more.
playSound("pop")Install with npx shadcn@latest add @nexus-labs/ui-sounds.
24 free and 48 Pro sounds. All but the 9 recorded ones are synthesised in the browser with no audio files; those play from small previews here.
Sounds scored to a picture
The sounds above are a shared library. These belong to a single component or icon: written to the animation they go with, and installed along with it.
Made for components
Four newer components carry sounds of their own, scored to what happens on screen. Each one is a single event here; in the component they follow the pour, the flip or the upload as it runs.
Made for icons
Every animated icon has its own sound, timed to its animation, and the three liquid looks add a layer of their own. These are a few of the 200.
Want the rest? Every icon page plays its own sound next to the code, and the icon sound guide shows how to add them to your own app.
Add it to your app
One command puts lib/ui-sounds.ts in your project. Then any click, toggle or toast can make a sound.
$ npx shadcn@latest add @nexus-labs/ui-soundsPatterns you will use
Toggles, async work, notifications, components that play themselves, and a sound switch for your settings page. Copy the ones you need.
The Pro pack
39 more sounds in glass, paper and wood, arcade, studio, device and gallery sets. Included in the Pro plan. The command needs your Nexus API key, set up once as described in the CLI guide.
$ npx shadcn@latest add @nexus-labs/ui-sounds-proThe recorded sounds
9 recordings: typing, camera, message, notification, screenshot, build-up, landing, pitch tick and glass sting. The audio ships inside the package, so there is no file to host. Included in the Pro plan.
$ npx shadcn@latest add @nexus-labs/ui-sounds-recordedThe Mac style
All 24 free sounds re-voiced to feel at home on a Mac or iPhone. Install it, call useMacSounds() once, and every component that makes sound switches to it. Original recipes, no Apple recordings. Included in the Pro plan.
$ npx shadcn@latest add @nexus-labs/ui-sounds-macQuestions
Do the sounds need audio files?
No. The 24 free sounds and the 39 synthesised Pro sounds are made in the browser with the Web Audio API from oscillators, filtered noise and volume envelopes, so the free library is one TypeScript file of about 8 KB and nothing is downloaded. The 9 recorded Pro sounds are the one exception: they are short audio recordings, but they ship inside the package as code, so you still have no file to host.
Why does nothing play until I click?
Browsers only allow audio after a user gesture. Call playSound from a click, key press or pointer event; the audio context starts on the first one.
Does it work with the Next.js App Router?
Yes. Import playSound inside a client component ("use client"). On the server the functions do nothing, so importing them is safe anywhere.
How do I let people turn sounds off?
Use the useSoundsEnabled hook for a speaker button, or call setSoundsEnabled(false) from anywhere. The choice is remembered in this browser (localStorage key ui-sounds) and every sound follows it. setSoundVolume(0 to 1) sets the level, and a component that makes sound also takes enableSound={false} to be silent on its own. Interface sounds should be optional and quiet; the defaults are already soft.
Which Nexus UI components make sound?
196 components play these sounds on press, toggle, snap, send, drop and success, never on hover. When a component plays itself with autoplay, it makes the same sounds once you have clicked anywhere on the page, because browsers keep audio asleep until then. Filter the component gallery by Sound to see them. On this site sound is off until you switch it on with the speaker in the menu; in your own app it is on by default.
Which sounds are free and which are Pro?
The 24 sounds the components use are free, with their full source on this page. The Pro plan adds 39 synthesised sounds in six sets (glass, paper and wood, arcade, studio, devices, and gallery) and 9 recorded ones. Every Pro sound plays on this page for everyone, so you can hear it before you decide. Its code, install command and full-quality file come with the Pro plan.
What is the Mac style? Are these Apple's sounds?
A second voice for the 24 free sounds: the same names, re-voiced to feel at home on a Mac or an iPhone, with glassy bells, soft key tocks, bubbles and airy swooshes instead of buzzier synth tones. Switch it on with the Style control above and every component on this site plays it. They are not Apple's sounds: Apple's system sounds are copyrighted recordings that can't be redistributed, so every Mac-style sound is an original recipe made with the Web Audio API, with no audio files. The file comes with the Pro plan.
What are the recorded sounds?
Nine short recordings for moments a synthesiser does not do well: typing, camera, message, notification and screenshot, plus a build-up, a landing, a pitch tick and a glass sting cut from the Nexus UI Word Rush and Glass Orbit video soundtracks. On this page they play from small, compressed previews so you can judge them. The install carries the full-quality recordings, levelled to sit with the other sounds, inside a TypeScript file, so there is nothing to host. They follow the same on/off switch, volume and autoplay rules as every other sound, and they are Pro only.
How do I add the Pro sounds to my app?
On a Pro plan, set up your API key as in the Quick Start (save it as NEXUS_API_KEY in .env.local and add the registries entry to components.json), run the install command for ui-sounds-pro (it also installs ui-sounds), then call playProSound or the useProSound hook. For the recorded sounds, install ui-sounds-recorded and call playRecordedSound or useRecordedSound. All of them follow the same on/off switch and volume as the free ones.
Is it free?
The core library is free to use in personal and commercial projects, installed with the shadcn CLI or copied from this page. The Pro pack is included in the Pro plan.
Give them something to press.
The sounds pair with the components: a pop for a like, a latch for a toggle, a chime for a toast. The videos come with soundtracks of their own.
