toggle button emoji

toggle-button from OpenMoji by OpenMoji · Default · Extras Openmoji · CC-BY-SA-4.0 Attribution required.

Name
toggle-button
Set
OpenMoji
Style
Default
Category
Extras Openmoji
Viewbox
72×72
License
CC BY-SA 4.0

More extras openmoji icons from OpenMoji

Use the toggle button emoji

SVG

<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 72 72"><g stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2"><path fill="#d0cfce" d="M51.098 45.98h-30.04c-5.512 0-9.98-4.469-9.98-9.98s4.468-9.98 9.98-9.98h30.04c5.512 0 9.98 4.468 9.98 9.98c0 5.511-4.468 9.98-9.98 9.98"/><circle cx="20.923" cy="36" r="10.001" fill="#ea5a47"/><path fill="#ea5a47" d="M27.521 28.446c4.09 3.713 4.395 10.038.682 14.127s-10.038 4.394-14.127.681"/></g><g fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2"><path d="M51.098 45.98h-30.04c-5.512 0-9.98-4.469-9.98-9.98v0c0-5.512 4.468-9.98 9.98-9.98h30.04c5.512 0 9.98 4.468 9.98 9.98v0c0 5.511-4.468 9.98-9.98 9.98"/><circle cx="20.923" cy="36" r="10.001"/><path d="M27.521 28.446c4.09 3.713 4.395 10.038.682 14.127s-10.038 4.394-14.127.681"/></g></svg>

React

import type { SVGProps } from "react";

export function OpenmojiToggleButton(props: SVGProps<SVGSVGElement>) {
  return (
    <svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 72 72"><g strokeLinecap="round" strokeLinejoin="round" strokeMiterlimit="10" strokeWidth="2"><path fill="#d0cfce" d="M51.098 45.98h-30.04c-5.512 0-9.98-4.469-9.98-9.98s4.468-9.98 9.98-9.98h30.04c5.512 0 9.98 4.468 9.98 9.98c0 5.511-4.468 9.98-9.98 9.98"/><circle cx="20.923" cy="36" r="10.001" fill="#ea5a47"/><path fill="#ea5a47" d="M27.521 28.446c4.09 3.713 4.395 10.038.682 14.127s-10.038 4.394-14.127.681"/></g><g fill="none" stroke="#000" strokeLinecap="round" strokeLinejoin="round" strokeMiterlimit="10" strokeWidth="2"><path d="M51.098 45.98h-30.04c-5.512 0-9.98-4.469-9.98-9.98v0c0-5.512 4.468-9.98 9.98-9.98h30.04c5.512 0 9.98 4.468 9.98 9.98v0c0 5.511-4.468 9.98-9.98 9.98"/><circle cx="20.923" cy="36" r="10.001"/><path d="M27.521 28.446c4.09 3.713 4.395 10.038.682 14.127s-10.038 4.394-14.127.681"/></g></svg>
  );
}

Vue

<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 72 72"><g stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2"><path fill="#d0cfce" d="M51.098 45.98h-30.04c-5.512 0-9.98-4.469-9.98-9.98s4.468-9.98 9.98-9.98h30.04c5.512 0 9.98 4.468 9.98 9.98c0 5.511-4.468 9.98-9.98 9.98"/><circle cx="20.923" cy="36" r="10.001" fill="#ea5a47"/><path fill="#ea5a47" d="M27.521 28.446c4.09 3.713 4.395 10.038.682 14.127s-10.038 4.394-14.127.681"/></g><g fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2"><path d="M51.098 45.98h-30.04c-5.512 0-9.98-4.469-9.98-9.98v0c0-5.512 4.468-9.98 9.98-9.98h30.04c5.512 0 9.98 4.468 9.98 9.98v0c0 5.511-4.468 9.98-9.98 9.98"/><circle cx="20.923" cy="36" r="10.001"/><path d="M27.521 28.446c4.09 3.713 4.395 10.038.682 14.127s-10.038 4.394-14.127.681"/></g></svg>
</template>

CSS

.icon-toggle-button {
  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%2072%2072%22%3E%3Cg%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222%22%3E%3Cpath%20fill%3D%22%23d0cfce%22%20d%3D%22M51.098%2045.98h-30.04c-5.512%200-9.98-4.469-9.98-9.98s4.468-9.98%209.98-9.98h30.04c5.512%200%209.98%204.468%209.98%209.98c0%205.511-4.468%209.98-9.98%209.98%22%2F%3E%3Ccircle%20cx%3D%2220.923%22%20cy%3D%2236%22%20r%3D%2210.001%22%20fill%3D%22%23ea5a47%22%2F%3E%3Cpath%20fill%3D%22%23ea5a47%22%20d%3D%22M27.521%2028.446c4.09%203.713%204.395%2010.038.682%2014.127s-10.038%204.394-14.127.681%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M51.098%2045.98h-30.04c-5.512%200-9.98-4.469-9.98-9.98v0c0-5.512%204.468-9.98%209.98-9.98h30.04c5.512%200%209.98%204.468%209.98%209.98v0c0%205.511-4.468%209.98-9.98%209.98%22%2F%3E%3Ccircle%20cx%3D%2220.923%22%20cy%3D%2236%22%20r%3D%2210.001%22%2F%3E%3Cpath%20d%3D%22M27.521%2028.446c4.09%203.713%204.395%2010.038.682%2014.127s-10.038%204.394-14.127.681%22%2F%3E%3C%2Fg%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%2072%2072%22%3E%3Cg%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222%22%3E%3Cpath%20fill%3D%22%23d0cfce%22%20d%3D%22M51.098%2045.98h-30.04c-5.512%200-9.98-4.469-9.98-9.98s4.468-9.98%209.98-9.98h30.04c5.512%200%209.98%204.468%209.98%209.98c0%205.511-4.468%209.98-9.98%209.98%22%2F%3E%3Ccircle%20cx%3D%2220.923%22%20cy%3D%2236%22%20r%3D%2210.001%22%20fill%3D%22%23ea5a47%22%2F%3E%3Cpath%20fill%3D%22%23ea5a47%22%20d%3D%22M27.521%2028.446c4.09%203.713%204.395%2010.038.682%2014.127s-10.038%204.394-14.127.681%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-miterlimit%3D%2210%22%20stroke-width%3D%222%22%3E%3Cpath%20d%3D%22M51.098%2045.98h-30.04c-5.512%200-9.98-4.469-9.98-9.98v0c0-5.512%204.468-9.98%209.98-9.98h30.04c5.512%200%209.98%204.468%209.98%209.98v0c0%205.511-4.468%209.98-9.98%209.98%22%2F%3E%3Ccircle%20cx%3D%2220.923%22%20cy%3D%2236%22%20r%3D%2210.001%22%2F%3E%3Cpath%20d%3D%22M27.521%2028.446c4.09%203.713%204.395%2010.038.682%2014.127s-10.038%204.394-14.127.681%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
}

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