Keyboard & Command Sounds
Optional keyboard and command feedback for focused productivity interfaces.
Keyboard sounds
Optional feedback for keys and commands.
Ready
Installation#
pnpm dlx shadcn@latest add @davinciui/keyboard-command-soundsUsage#
API Reference#
| Prop | Type | Default |
|---|---|---|
volumeGenerated feedback volume from 0 to 1. | number | 0.16 |
compactUses a compact card-safe layout. | boolean | false |
Accessibility#
Controls are native buttons: the On/Off toggle exposes aria-pressed, the sample input has a label, and the Run button has an aria-label. Status text uses aria-live polite outside compact mode; the global key listener only runs after the user enables sound.
Motion#
The card is static apart from CSS color transitions and button active scale; no animation loop or timing props exist. prefers-reduced-motion is not detected, so the small press scale still occurs.
View source
Keep in mind
Need a custom component?
I build bespoke UI components & websites tailored to your brand.

