johnmamanao

Mute Button

Buttons

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>
  );
}

Dependencies

More by johnmamanao

View all
  • Matrix Rain

    Matrix Rain

    82
  • Liquid Metal Shader

    Liquid Metal Shader

    58
  • Signal Reveal Text

    Signal Reveal Text

    41
  • Ribbon Fold Loader

    Ribbon Fold Loader

    21
  • Toolchain Marquee

    Toolchain Marquee

    20
  • Mercury Rail Loader

    Mercury Rail Loader

    17
  • Facet Bloom Loader

    Facet Bloom Loader

    13
  • Tidal Type Text

    Tidal Type Text

    10

More in Buttons

View all
  • Button

    Button

    14
  • Button

    Button

    34
  • Texture Button

    Texture Button

    92
  • Button Save

    Button Save

    46
  • Button

    Button

    64
  • Button Group

    Button Group

    3
  • Button

    Button

  • Notification Button

    Notification Button

    103