magnet from IconPark by ByteDance · Color · Operate · Apache-2.0 Free for personal and commercial use.

Name
magnet
Set
IconPark
Style
Color
Category
Operate
Viewbox
48×48
License
Apache 2.0

The same icon in other sets

More operate icons from IconPark

Use the magnet icon

SVG

<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 48 48"><g fill="none" stroke="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="4"><path d="M6 10V26C6 35.9411 14.0589 44 24 44C33.9411 44 42 35.9411 42 26V10M14 10V26C14 31.5228 18.4772 36 24 36C29.5228 36 34 31.5228 34 26V10"/><path fill="#2F88FF" d="M14 4H6V10H14V4Z"/><path fill="#2F88FF" d="M34 4H42V10H34V4Z"/></g></svg>

React

import type { SVGProps } from "react";

export function IconParkMagnet(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" stroke="#000" strokeLinecap="round" strokeLinejoin="round" strokeWidth="4"><path d="M6 10V26C6 35.9411 14.0589 44 24 44C33.9411 44 42 35.9411 42 26V10M14 10V26C14 31.5228 18.4772 36 24 36C29.5228 36 34 31.5228 34 26V10"/><path fill="#2F88FF" d="M14 4H6V10H14V4Z"/><path fill="#2F88FF" d="M34 4H42V10H34V4Z"/></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="#000" stroke-linecap="round" stroke-linejoin="round" stroke-width="4"><path d="M6 10V26C6 35.9411 14.0589 44 24 44C33.9411 44 42 35.9411 42 26V10M14 10V26C14 31.5228 18.4772 36 24 36C29.5228 36 34 31.5228 34 26V10"/><path fill="#2F88FF" d="M14 4H6V10H14V4Z"/><path fill="#2F88FF" d="M34 4H42V10H34V4Z"/></g></svg>
</template>

CSS

.icon-magnet {
  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%3D%22%23000%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%224%22%3E%3Cpath%20d%3D%22M6%2010V26C6%2035.9411%2014.0589%2044%2024%2044C33.9411%2044%2042%2035.9411%2042%2026V10M14%2010V26C14%2031.5228%2018.4772%2036%2024%2036C29.5228%2036%2034%2031.5228%2034%2026V10%22%2F%3E%3Cpath%20fill%3D%22%232F88FF%22%20d%3D%22M14%204H6V10H14V4Z%22%2F%3E%3Cpath%20fill%3D%22%232F88FF%22%20d%3D%22M34%204H42V10H34V4Z%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%3D%22%23000%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%224%22%3E%3Cpath%20d%3D%22M6%2010V26C6%2035.9411%2014.0589%2044%2024%2044C33.9411%2044%2042%2035.9411%2042%2026V10M14%2010V26C14%2031.5228%2018.4772%2036%2024%2036C29.5228%2036%2034%2031.5228%2034%2026V10%22%2F%3E%3Cpath%20fill%3D%22%232F88FF%22%20d%3D%22M14%204H6V10H14V4Z%22%2F%3E%3Cpath%20fill%3D%22%232F88FF%22%20d%3D%22M34%204H42V10H34V4Z%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/magnet.svg?color=%231a73e8&size=48