Skip to content

Toggle

The toggle icon represents a toggle switch, often used to symbolize on/off or enable/disable functionality.

Exports at 24 × 24 px

Toggle icon from Duoicons
Get Pro

Code

Toggle in your framework

In any framework. Customize it above, and the code follows.

export const ToggleIcon = (props: React.SVGProps<SVGSVGElement>) => (
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" {...props}>
    <path fill="currentColor" d="M6 12c0-1.54 1.667-2.502 3-1.732c.619.357 1 1.017 1 1.732c0 1.54-1.667 2.502-3 1.732A2 2 0 0 1 6 12" class="duoicon-primary-layer"/><path fill="currentColor" fillRule="evenodd" d="M8 5C2.611 5-.756 10.833 1.938 15.5A7 7 0 0 0 8 19h8c5.389 0 8.756-5.833 6.062-10.5A7 7 0 0 0 16 5zm0 3c-3.079 0-5.004 3.333-3.464 6A4 4 0 0 0 8 16c3.079 0 5.004-3.333 3.464-6A4 4 0 0 0 8 8" class="duoicon-secondary-layer" opacity=".3"/>
  </svg>
);

Other libraries

Toggle in 3 more libraries

Each library draws it its own way. Open one to compare.

Duoicons

Icons that share its tags, in the same style.

  • Settings icon from Duoicons
  • Shopping Bag icon from Duoicons
  • Slideshow icon from Duoicons
  • Smartphone icon from Duoicons
  • Smartphone Vibration icon from Duoicons
  • Smartwatch icon from Duoicons
  • Sun icon from Duoicons
  • Target icon from Duoicons
  • Translation icon from Duoicons
  • Upload File icon from Duoicons
  • User icon from Duoicons
  • User Card icon from Duoicons
  • Palette icon from Duoicons
  • Align Bottom icon from Duoicons
  • Align Center icon from Duoicons
  • App icon from Duoicons
  • App Dots icon from Duoicons
  • Appstore icon from Duoicons
  • Building icon from Duoicons
  • Bus icon from Duoicons
  • Cake icon from Duoicons
  • Calendar icon from Duoicons
  • Camera icon from Duoicons
  • Camera Square icon from Duoicons

Skip the copy and paste. With Pro, your AI agent finds and installs any Duoicons icon from a prompt.

Get Pro

Pricing

Duoicons MCP, with Pro

Ask for Toggle or any of 91 Duoicons icons and your agent installs it. The MCP comes with every Pro plan, with 6,000+ blocks and 14 premium templates. The icons stay free.

4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.

  • Secure checkout via Stripe
  • Code lives in your repo
  • Keep what you've shipped if you cancel
  • License terms

FAQ

Frequently asked questions

What the Toggle icon means and where it's used, then how to install, style, label and license it.

4.9 out of 5 from 150+ developers

Install Toggle from a prompt

MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.

Get Pro