ICONYZ
English
Magnet icon from Griddy Icons

Magnet icon

griddy-icons:magnet

The Magnet icon (griddy-icons:magnet) is a free SVG icon from the Griddy Icons set by Zuzana Benova. It is drawn on a 24 × 24 grid. Griddy 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
Griddy Icons
Author
Zuzana Benova
License
MIT
Size
24 × 24
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="m18.755 7.695l-7.73 7.58c-.615.615-1.685.615-2.3 0a1.627 1.627 0 0 1 0-2.3L16.38 5.32L12.005.94L4.31 8.555a7.83 7.83 0 0 0-2.305 5.57c0 2.105.82 4.08 2.305 5.57A7.8 7.8 0 0 0 9.88 22c2.105 0 4.08-.82 5.57-2.31l7.61-7.695l-4.3-4.3zm2.185 4.31l-1.68 1.7l-2.225-2.225l1.705-1.675zM14.26 5.32l-1.69 1.69l-2.27-2.27L12 3.06l2.265 2.265zm.125 13.315a6.33 6.33 0 0 1-4.51 1.865a6.35 6.35 0 0 1-4.51-1.865a6.32 6.32 0 0 1-1.865-4.51A6.33 6.33 0 0 1 5.365 9.62l3.87-3.825l2.28 2.28L7.67 11.92a3.1 3.1 0 0 0-.915 2.21c0 .835.325 1.62.915 2.21s1.375.915 2.21.915a3.1 3.1 0 0 0 2.205-.91l3.89-3.81l2.24 2.24l-3.825 3.865z"/></svg>

How to use the Magnet icon

React

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

<Icon icon="griddy-icons:magnet" width="24" />

Vue

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

<template>
  <Icon icon="griddy-icons:magnet" width="24" />
</template>

Svelte

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

<Icon icon="griddy-icons:magnet" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="griddy-icons:magnet"></iconify-icon>

HTML image

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

Related icons in Griddy Icons

Magnet icon in other icon sets

Magnet icon FAQ

Is the Magnet icon free for commercial use?

Yes. Griddy 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="griddy-icons: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/griddy-icons/magnet.svg" alt="Magnet icon">, or paste the SVG code inline to style it with CSS.

Browse all Griddy Icons →