Interaction Sound Kit
System-style sound feedback for trash, drop, confirmation, and warning actions.
Interface sounds
Subtle, generated feedback for product actions.
Installation#
pnpm dlx shadcn@latest add @davinciui/interaction-sound-kitUsage#
API Reference#
| Prop | Type | Default |
|---|---|---|
volumeGenerated sound volume from 0 to 1. | number | 0.38 |
defaultMutedStarts the kit in a muted state. | boolean | false |
compactShows an icon-focused three-action variant. | boolean | false |
onSoundPlayRuns after a user triggers a sound. | (action) => void | — |
Accessibility#
Action buttons are native buttons with visible labels; compact mode adds aria-label, and the mute toggle exposes aria-pressed and a changing label. Focus-visible rings are defined. Sounds are user-triggered, and decorative SVG icons are aria-hidden.
Motion#
Only hover lift, icon scale, and the temporary active border animate through CSS transitions; no timing or easing props exist. prefers-reduced-motion is not detected, so hover and active micro-motion still run.
View source
Keep in mind
Need a custom component?
I build bespoke UI components & websites tailored to your brand.

