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

    142
  • Liquid Metal Shader

    Liquid Metal Shader

    97
  • Signal Reveal Text

    Signal Reveal Text

    61
  • Toolchain Marquee

    Toolchain Marquee

    45
  • Ribbon Fold Loader

    Ribbon Fold Loader

    29
  • Mercury Rail Loader

    Mercury Rail Loader

    23
  • Tidal Type Text

    Tidal Type Text

    22
  • Facet Bloom Loader

    Facet Bloom Loader

    20

More in Buttons

View all
  • Texture Button

    Texture Button

    108
  • Button

    Button

    14
  • Notification Button

    Notification Button

    117
  • HeroUI Button Group

    HeroUI Button Group

    2
  • Eclipse Button

    Eclipse Button

    44
  • Button Save

    Button Save

    50
  • App Store Button

    App Store Button

    484
  • Base Button

    Base Button

    1