Blocks

Ready-to-use showcase sections combining sensory-ui components with sound feedback.

Pre-built showcase sections that demonstrate real-world patterns for adding sound feedback to common UI patterns. Each block combines multiple sensory-ui components with tasteful sound roles.

Demo

Live demoEvery block below is interactive like this one
npx shadcn@latest add SatyamVyas04/sensory-ui/sensory-ui-button

Installation

npx shadcn@latest add SatyamVyas04/sensory-ui/sensory-ui

The bundle covers every block on this page. Prefer installing only what a block needs? Each block page lists its own minimal commands.

Available Blocks


How Blocks Work

Each block is a self-contained MDX page with:

  1. Title and description: What the block demonstrates
  2. Live demo: Interactive preview with sound pack selector
  3. Installation: Copy-paste command to install the block
  4. Code: Full source code you can paste into your project
  5. Sound roles: Which roles are used and why
  6. Customization: How to swap sounds or disable them

Blocks are designed to be copied directly into your project. They use the same sensory-ui components you already have installed.


Using Blocks

Copy the code

Each block provides the full source code. Paste it into your project and adjust as needed.

Customize sounds

// Swap sounds for a different role
<Button sound="interaction.confirm">CTA</Button>

// Disable sounds on specific elements
<Button sound={false}>Silent CTA</Button>

When to Use Blocks

  • Showcasing sensory-ui: Demonstrate the library's capabilities
  • Starting points: Use as a base for your own implementations
  • Learning: See how components compose with sound roles
  • Prototyping: Quickly add sound feedback to common patterns