toggle switch variant icon

toggle-switch-variant from Material Design Icons by Pictogrammers · Filled · Home Automation · Apache-2.0 Free for personal and commercial use.

Name
toggle-switch-variant
Set
Material Design Icons
Style
Filled
Category
Home Automation
Viewbox
24×24
License
Apache 2.0
Aliases
light-switch-on

More home automation icons from Material Design Icons

Use the toggle switch variant icon

SVG

<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M18.4 1.6C18 1.2 17.5 1 17 1H7c-.5 0-1 .2-1.4.6S5 2.5 5 3v18c0 .5.2 1 .6 1.4s.9.6 1.4.6h10c.5 0 1-.2 1.4-.6s.6-.9.6-1.4V3c0-.5-.2-1-.6-1.4M16 7c0 .6-.4 1-1 1H9c-.6 0-1-.4-1-1V5c0-.6.4-1 1-1h6c.6 0 1 .4 1 1z"/></svg>

React

import type { SVGProps } from "react";

export function MdiToggleSwitchVariant(props: SVGProps<SVGSVGElement>) {
  return (
    <svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M18.4 1.6C18 1.2 17.5 1 17 1H7c-.5 0-1 .2-1.4.6S5 2.5 5 3v18c0 .5.2 1 .6 1.4s.9.6 1.4.6h10c.5 0 1-.2 1.4-.6s.6-.9.6-1.4V3c0-.5-.2-1-.6-1.4M16 7c0 .6-.4 1-1 1H9c-.6 0-1-.4-1-1V5c0-.6.4-1 1-1h6c.6 0 1 .4 1 1z"/></svg>
  );
}

Vue

<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M18.4 1.6C18 1.2 17.5 1 17 1H7c-.5 0-1 .2-1.4.6S5 2.5 5 3v18c0 .5.2 1 .6 1.4s.9.6 1.4.6h10c.5 0 1-.2 1.4-.6s.6-.9.6-1.4V3c0-.5-.2-1-.6-1.4M16 7c0 .6-.4 1-1 1H9c-.6 0-1-.4-1-1V5c0-.6.4-1 1-1h6c.6 0 1 .4 1 1z"/></svg>
</template>

CSS

.icon-toggle-switch-variant {
  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%2024%2024%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M18.4%201.6C18%201.2%2017.5%201%2017%201H7c-.5%200-1%20.2-1.4.6S5%202.5%205%203v18c0%20.5.2%201%20.6%201.4s.9.6%201.4.6h10c.5%200%201-.2%201.4-.6s.6-.9.6-1.4V3c0-.5-.2-1-.6-1.4M16%207c0%20.6-.4%201-1%201H9c-.6%200-1-.4-1-1V5c0-.6.4-1%201-1h6c.6%200%201%20.4%201%201z%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%2024%2024%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M18.4%201.6C18%201.2%2017.5%201%2017%201H7c-.5%200-1%20.2-1.4.6S5%202.5%205%203v18c0%20.5.2%201%20.6%201.4s.9.6%201.4.6h10c.5%200%201-.2%201.4-.6s.6-.9.6-1.4V3c0-.5-.2-1-.6-1.4M16%207c0%20.6-.4%201-1%201H9c-.6%200-1-.4-1-1V5c0-.6.4-1%201-1h6c.6%200%201%20.4%201%201z%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}

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