switch button icon
switch-button from IconPark by ByteDance · Color · Components · Apache-2.0 Free for personal and commercial use.
- Name
- switch-button
- Set
- IconPark
- Style
- Color
- Category
- Components
- Viewbox
- 48×48
- License
- Apache 2.0
The same icon in other sets
More components icons from IconPark
Use the switch button icon
SVG
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 48 48"><g fill="none" stroke-linejoin="round" stroke-width="4"><path fill="#2F88FF" stroke="#000" d="M36 4H12C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20H36C40.4183 20 44 16.4183 44 12C44 7.58172 40.4183 4 36 4Z"/><path fill="#2F88FF" stroke="#000" d="M36 28H12C7.58172 28 4 31.5817 4 36C4 40.4183 7.58172 44 12 44H36C40.4183 44 44 40.4183 44 36C44 31.5817 40.4183 28 36 28Z"/><path fill="#43CCF8" stroke="#fff" d="M36 14C37.1046 14 38 13.1046 38 12C38 10.8954 37.1046 10 36 10C34.8954 10 34 10.8954 34 12C34 13.1046 34.8954 14 36 14Z"/><path fill="#43CCF8" stroke="#fff" d="M12 38C13.1046 38 14 37.1046 14 36C14 34.8954 13.1046 34 12 34C10.8954 34 10 34.8954 10 36C10 37.1046 10.8954 38 12 38Z"/></g></svg>
React
import type { SVGProps } from "react";
export function IconParkSwitchButton(props: SVGProps<SVGSVGElement>) {
return (
<svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 48 48"><g fill="none" strokeLinejoin="round" strokeWidth="4"><path fill="#2F88FF" stroke="#000" d="M36 4H12C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20H36C40.4183 20 44 16.4183 44 12C44 7.58172 40.4183 4 36 4Z"/><path fill="#2F88FF" stroke="#000" d="M36 28H12C7.58172 28 4 31.5817 4 36C4 40.4183 7.58172 44 12 44H36C40.4183 44 44 40.4183 44 36C44 31.5817 40.4183 28 36 28Z"/><path fill="#43CCF8" stroke="#fff" d="M36 14C37.1046 14 38 13.1046 38 12C38 10.8954 37.1046 10 36 10C34.8954 10 34 10.8954 34 12C34 13.1046 34.8954 14 36 14Z"/><path fill="#43CCF8" stroke="#fff" d="M12 38C13.1046 38 14 37.1046 14 36C14 34.8954 13.1046 34 12 34C10.8954 34 10 34.8954 10 36C10 37.1046 10.8954 38 12 38Z"/></g></svg>
);
}
Vue
<template> <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 48 48"><g fill="none" stroke-linejoin="round" stroke-width="4"><path fill="#2F88FF" stroke="#000" d="M36 4H12C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20H36C40.4183 20 44 16.4183 44 12C44 7.58172 40.4183 4 36 4Z"/><path fill="#2F88FF" stroke="#000" d="M36 28H12C7.58172 28 4 31.5817 4 36C4 40.4183 7.58172 44 12 44H36C40.4183 44 44 40.4183 44 36C44 31.5817 40.4183 28 36 28Z"/><path fill="#43CCF8" stroke="#fff" d="M36 14C37.1046 14 38 13.1046 38 12C38 10.8954 37.1046 10 36 10C34.8954 10 34 10.8954 34 12C34 13.1046 34.8954 14 36 14Z"/><path fill="#43CCF8" stroke="#fff" d="M12 38C13.1046 38 14 37.1046 14 36C14 34.8954 13.1046 34 12 34C10.8954 34 10 34.8954 10 36C10 37.1046 10.8954 38 12 38Z"/></g></svg> </template>
CSS
.icon-switch-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%2048%2048%22%3E%3Cg%20fill%3D%22none%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%224%22%3E%3Cpath%20fill%3D%22%232F88FF%22%20stroke%3D%22%23000%22%20d%3D%22M36%204H12C7.58172%204%204%207.58172%204%2012C4%2016.4183%207.58172%2020%2012%2020H36C40.4183%2020%2044%2016.4183%2044%2012C44%207.58172%2040.4183%204%2036%204Z%22%2F%3E%3Cpath%20fill%3D%22%232F88FF%22%20stroke%3D%22%23000%22%20d%3D%22M36%2028H12C7.58172%2028%204%2031.5817%204%2036C4%2040.4183%207.58172%2044%2012%2044H36C40.4183%2044%2044%2040.4183%2044%2036C44%2031.5817%2040.4183%2028%2036%2028Z%22%2F%3E%3Cpath%20fill%3D%22%2343CCF8%22%20stroke%3D%22%23fff%22%20d%3D%22M36%2014C37.1046%2014%2038%2013.1046%2038%2012C38%2010.8954%2037.1046%2010%2036%2010C34.8954%2010%2034%2010.8954%2034%2012C34%2013.1046%2034.8954%2014%2036%2014Z%22%2F%3E%3Cpath%20fill%3D%22%2343CCF8%22%20stroke%3D%22%23fff%22%20d%3D%22M12%2038C13.1046%2038%2014%2037.1046%2014%2036C14%2034.8954%2013.1046%2034%2012%2034C10.8954%2034%2010%2034.8954%2010%2036C10%2037.1046%2010.8954%2038%2012%2038Z%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%2048%2048%22%3E%3Cg%20fill%3D%22none%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%224%22%3E%3Cpath%20fill%3D%22%232F88FF%22%20stroke%3D%22%23000%22%20d%3D%22M36%204H12C7.58172%204%204%207.58172%204%2012C4%2016.4183%207.58172%2020%2012%2020H36C40.4183%2020%2044%2016.4183%2044%2012C44%207.58172%2040.4183%204%2036%204Z%22%2F%3E%3Cpath%20fill%3D%22%232F88FF%22%20stroke%3D%22%23000%22%20d%3D%22M36%2028H12C7.58172%2028%204%2031.5817%204%2036C4%2040.4183%207.58172%2044%2012%2044H36C40.4183%2044%2044%2040.4183%2044%2036C44%2031.5817%2040.4183%2028%2036%2028Z%22%2F%3E%3Cpath%20fill%3D%22%2343CCF8%22%20stroke%3D%22%23fff%22%20d%3D%22M36%2014C37.1046%2014%2038%2013.1046%2038%2012C38%2010.8954%2037.1046%2010%2036%2010C34.8954%2010%2034%2010.8954%2034%2012C34%2013.1046%2034.8954%2014%2036%2014Z%22%2F%3E%3Cpath%20fill%3D%22%2343CCF8%22%20stroke%3D%22%23fff%22%20d%3D%22M12%2038C13.1046%2038%2014%2037.1046%2014%2036C14%2034.8954%2013.1046%2034%2012%2034C10.8954%2034%2010%2034.8954%2010%2036C10%2037.1046%2010.8954%2038%2012%2038Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
}Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/icon-park/switch-button.svg?color=%231a73e8&size=48