Toggle as mute/unmute button
For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Free to install.
Best for: A large outline speaker that swaps to a muted speaker icon and from Sound to Muted while pressed
When to use
- Editor formatting controls that stay pressed, such as bold, italic, underline and strikethrough
- Reaction and save controls, such as like, retweet, share and bookmark, with or without a count
- Media and app controls with an on and off state, such as mute, pin to sidebar or a notifications bell
When not to use
- A one time action such as Save, Send or Delete that keeps no pressed state: use the Button component
- Related actions joined edge to edge into one strip, such as playback or zoom controls: use the Button Group component
- A set of options read as one value and crossed with arrow keys, such as text alignment: use the Toggle Group component
Agent notes
muteddrives only the icon and label; apply it to your audio or video element fromonPressedChange- Pressed state lives inside each
Toggleor a localuseStateand nothing saves it; read changes fromonPressedChangeto persist them - Every
Togglehere is named byaria-label, which wins over its visible text for screen readers, so update both when relabelling
https://reui.io/components/toggle/c-toggle-14.mdget_example("c-toggle-14")npx shadcn@latest add @reui/c-toggle-14Shadcn Components in Toggle Mute Button
About Shadcn Toggle Mute Button
Toggle as mute/unmute button. Built with the Toggle component. A free, open source shadcn toggle example you can install with npx shadcn@latest add @reui/c-toggle-14 and edit as your own code.
What You Can Build With Shadcn Toggle Mute Button
- Composes Toggle, so it drops into any project already using those components.
- Install it with the shadcn CLI: npx shadcn@latest add @reui/c-toggle-14
- Open source and free, with the full source on this page to copy or adapt.
More Shadcn Toggle Examples
- Basic Basic toggle.
- Outline Toggle buttons with outline variant.
- Text Sizes Toggle buttons in different sizes.
- Button Comparison Toggle with button and icon.
- Disabled Text Disabled toggle.
- Icon & Label Toggle with icon.
- Count Badge Toggle with notification count badge
- Icon Sizes Toggle size variants showcase
- Icon Swap Toggle with icon swap on press
- Label Swap Toggle with text label that changes
- Reactions Social media reaction toggles
- Tooltip Toggle with tooltip
Related Shadcn Component Categories
Open-source shadcn toggle group components for view switches, toolbar options, and mutually exclusive actions.
Open-source shadcn tooltip components for inline hints, contextual guidance, and helper text.
Open-source shadcn tree components for file explorers, nested navigation, and hierarchical data.
Open-source shadcn accordion components for FAQ layouts, settings panels, and help sections.
Open-source shadcn alert components for status messages, warning banners, and destructive notices.
Open-source shadcn alert dialog components for delete confirmations, destructive actions, and critical decisions.
Frequently Asked Questions
When should I use Shadcn Toggle Mute Button?
Use it for a large outline speaker that swaps to a muted speaker icon and from Sound to Muted while pressed.
Shadcn Toggle as a whole fits:
- Editor formatting controls that stay pressed, such as bold, italic, underline and strikethrough
- Reaction and save controls, such as like, retweet, share and bookmark, with or without a count
- Media and app controls with an on and off state, such as mute, pin to sidebar or a notifications bell
For a one time action such as Save, Send or Delete that keeps no pressed state, use the Button component. For related actions joined edge to edge into one strip, such as playback or zoom controls, use the Button Group component. For a set of options read as one value and crossed with arrow keys, such as text alignment, use the Toggle Group component.
How do I install Shadcn Toggle Mute Button?
Is Shadcn Toggle Mute Button free to use?
Which components does Shadcn Toggle Mute Button use?
Start building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
From $249, once. Lifetime updates.