Magnet icon
raphael:magnet
The Magnet icon (raphael:magnet) is a free SVG icon from the Raphael set by Dmitry Baranovskiy. It is drawn on a 32 × 32 grid. Raphael icons are released under the MIT license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- Raphael
- Author
- Dmitry Baranovskiy
- License
- MIT
- Size
- 32 × 32
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path fill="currentColor" d="M20.812 19.5h5.002v-6.867c-.028-1.706-.61-3.807-2.172-5.84c-1.54-2.015-4.315-3.72-7.94-3.688c-3.626-.032-6.402 1.674-7.94 3.687c-1.562 2.034-2.145 4.136-2.174 5.842V19.5h5v-6.866c-.027-.377.303-1.79 1.1-2.748c.818-.98 1.847-1.747 4.013-1.778c2.166.032 3.196.8 4.014 1.778c.798.96 1.126 2.372 1.1 2.748V19.5zm5.002 6.08V20.5h-5.002v5.08h5.004zm-20.226 0h5V20.5h-5z"/></svg>How to use the Magnet icon
React
import { Icon } from "@iconify/react";
<Icon icon="raphael:magnet" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="raphael:magnet" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="raphael:magnet" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[raphael--magnet]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/raphael -->
<div class="i-raphael:magnet"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="raphael:magnet"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/raphael/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. Raphael icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Magnet icon in React?
Install @iconify/react and render <Icon icon="raphael: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/raphael/magnet.svg" alt="Magnet icon">, or paste the SVG code inline to style it with CSS.