toggle from IonIcons by Ben Sperry · Regular · MIT Free for personal and commercial use.

Name
toggle
Set
IonIcons
Style
Regular
Viewbox
512×512
License
MIT
Aliases
switch

2 other variants in IonIcons

The same icon in other sets

Related icons in IonIcons

Use the toggle icon

SVG

<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 512 512"><path fill="currentColor" d="M368 112H144C64.6 112 0 176.6 0 256s64.6 144 144 144h224c79.4 0 144-64.6 144-144s-64.6-144-144-144m0 256a112 112 0 1 1 112-112a112.12 112.12 0 0 1-112 112"/></svg>

React

import type { SVGProps } from "react";

export function IonToggle(props: SVGProps<SVGSVGElement>) {
  return (
    <svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 512 512"><path fill="currentColor" d="M368 112H144C64.6 112 0 176.6 0 256s64.6 144 144 144h224c79.4 0 144-64.6 144-144s-64.6-144-144-144m0 256a112 112 0 1 1 112-112a112.12 112.12 0 0 1-112 112"/></svg>
  );
}

Vue

<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 512 512"><path fill="currentColor" d="M368 112H144C64.6 112 0 176.6 0 256s64.6 144 144 144h224c79.4 0 144-64.6 144-144s-64.6-144-144-144m0 256a112 112 0 1 1 112-112a112.12 112.12 0 0 1-112 112"/></svg>
</template>

CSS

.icon-toggle {
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%20512%20512%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M368%20112H144C64.6%20112%200%20176.6%200%20256s64.6%20144%20144%20144h224c79.4%200%20144-64.6%20144-144s-64.6-144-144-144m0%20256a112%20112%200%201%201%20112-112a112.12%20112.12%200%200%201-112%20112%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%20512%20512%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M368%20112H144C64.6%20112%200%20176.6%200%20256s64.6%20144%20144%20144h224c79.4%200%20144-64.6%20144-144s-64.6-144-144-144m0%20256a112%20112%200%201%201%20112-112a112.12%20112.12%200%200%201-112%20112%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}

Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/ion/toggle.svg?color=%231a73e8&size=48