Skip to content

Sound Toggle

A "Sound — On/Off" toggle button with equalizer bars for sites with ambient audio or UI sounds: off by default, remembered, and readable anywhere through useSound().

Installation

pnpm dlx shadcn@latest add @portfolio-kit/sound-toggle
First time? Add the @portfolio-kit registry to components.json
components.json
{
  "registries": {
    "@portfolio-kit": "https://www.parthjadhav.com/products/portfolio-kit/r/{name}.json"
  }
}

Usage

Examples

In a Header

An icon toggle beside the nav that turns soft UI clicks on and off; the links read the same preference with useSound().

Text Only

A mono "Sound: Off" switch in the footer, next to the other small print, for minimal sites that avoid icons.

API Reference