Toggle icon
duo-icons:toggle
The Toggle icon (duo-icons:toggle) is a free SVG icon from the Duoicons set by fernandcf. It is drawn on a 24 × 24 grid. Duoicons are released under the MIT license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><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" fill-rule="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>How to use the Toggle icon
React
import { Icon } from "@iconify/react";
<Icon icon="duo-icons:toggle" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="duo-icons:toggle" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="duo-icons:toggle" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[duo-icons--toggle]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/duo-icons -->
<div class="i-duo-icons:toggle"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="duo-icons:toggle"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/duo-icons/toggle.svg" alt="Toggle icon" width="24" height="24">Toggle icon in other icon sets
Toggle icon FAQ
Is the Toggle icon free for commercial use?
Yes. Duoicons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Toggle icon in React?
Install @iconify/react and render <Icon icon="duo-icons:toggle" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Toggle icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/duo-icons/toggle.svg" alt="Toggle icon">, or paste the SVG code inline to style it with CSS.