About
A controlled or uncontrolled audio mute/unmute toggle button that swaps its icon and label with a morphing animation.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Mute Button to your project and fits it to your theme.
Code
How Mute Button is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import * as React from "react";
import MuteButton from "@/components/ui/mute-button";
export default function MuteButtonDemo() {
const [muted, setMuted] = React.useState(false);
return (
<div className="flex min-h-[320px] w-full items-center justify-center bg-background p-10">
<MuteButton muted={muted} onMutedChange={setMuted} />
</div>
);
}
















