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

    98
  • Liquid Metal Shader

    Liquid Metal Shader

    72
  • Signal Reveal Text

    Signal Reveal Text

    44
  • Toolchain Marquee

    Toolchain Marquee

    26
  • Ribbon Fold Loader

    Ribbon Fold Loader

    24
  • Mercury Rail Loader

    Mercury Rail Loader

    21
  • Facet Bloom Loader

    Facet Bloom Loader

    14
  • Tidal Type Text

    Tidal Type Text

    13

More in Buttons

View all
  • Texture Button

    Texture Button

    96
  • Button

    Button

    5
  • Button Group

    Button Group

  • Eclipse Button

    Eclipse Button

    39
  • Button

    Button

    4
  • App Store Button

    App Store Button

    458
  • HeroUI Button Group

    HeroUI Button Group

  • Base Button

    Base Button

    4