ICONYZ
English
Magnet icon from OpenMoji

Magnet icon

openmoji:magnet

The Magnet icon (openmoji:magnet) is a free SVG icon from the OpenMoji set. It is drawn on a 72 × 72 grid. OpenMoji icons are released under the CC BY-SA 4.0 license, which allows use in personal and commercial projects as long as you credit the author and share changes to the icons under the same license. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
OpenMoji
Author
OpenMoji
License
CC-BY-SA-4.0
Size
72 × 72
Category
Objects
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="72" height="72" viewBox="0 0 72 72"><defs><path id="SVGZPEkHeQd" d="M20.5 31.5h6v5h-6zm23 0h6v5h-6z"/></defs><path fill="#ea5a47" d="M43.5 36.5V47a8.5 8.5 0 0 1-17 0V36.5h-6V47a14.5 14.5 0 0 0 29 0V36.5Z"/><use href="#SVGZPEkHeQd" fill="#d0cfce"/><path fill="#fcea2b" d="M44.882 19.775a1.28 1.28 0 0 0-1.26-.907h-4.925l3.461-7.75a1 1 0 0 0-1.645-1.089L29.42 21.958a1.33 1.33 0 0 0-.278 1.451a1.37 1.37 0 0 0 1.266.85h4.88l-4.996 8.05a1 1 0 0 0 .213 1.299c.227.188.38.315.572.315c.4 0 .966-.557 2.716-2.279L44.21 21.371a1.45 1.45 0 0 0 .672-1.596"/><g fill="none" stroke="#000" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M43.5 36.5V47a8.5 8.5 0 0 1-17 0V36.5h-6V47a14.5 14.5 0 0 0 29 0V36.5Z"/><use href="#SVGZPEkHeQd" stroke-linecap="round" stroke-linejoin="round"/><path stroke-miterlimit="10" d="M44.882 19.775a1.28 1.28 0 0 0-1.26-.907h-4.925l3.461-7.75a1 1 0 0 0-1.645-1.089L29.42 21.958a1.33 1.33 0 0 0-.278 1.451a1.37 1.37 0 0 0 1.266.85h4.88l-4.996 8.05a1 1 0 0 0 .213 1.299c.227.188.38.315.572.315c.4 0 .966-.557 2.716-2.279L44.21 21.371a1.45 1.45 0 0 0 .672-1.596Z"/></g></svg>

How to use the Magnet icon

React

import { Icon } from "@iconify/react";

<Icon icon="openmoji:magnet" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="openmoji:magnet" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="openmoji:magnet" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[openmoji--magnet]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/openmoji -->
<div class="i-openmoji:magnet"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="openmoji:magnet"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/openmoji/magnet.svg" alt="Magnet icon" width="24" height="24">

Magnet icon in other icon sets

Magnet icon FAQ

Is the Magnet icon free for commercial use?

Yes. OpenMoji icons are released under the CC BY-SA 4.0 license, which allows use in personal and commercial projects as long as you credit the author and share changes to the icons under the same license.

How do I use the Magnet icon in React?

Install @iconify/react and render <Icon icon="openmoji:magnet" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Magnet icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/openmoji/magnet.svg" alt="Magnet icon">, or paste the SVG code inline to style it with CSS.

Browse all OpenMoji icons →