ICONYZ
English
Magnet icon from andrsrxn/icons

Magnet icon

andrsrxn:magnet

The Magnet icon (andrsrxn:magnet) is a free SVG icon from the andrsrxn/icons set by Andrés Raxón. It is drawn on a 24 × 24 grid. andrsrxn/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
andrsrxn/icons
Author
Andrés Raxón
License
MIT
Size
24 × 24
Category
Tools
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none"><path fill="currentColor" d="M2.99 3.02h4.3v4.3h-4.3zm13.96 0h4.3v4.3h-4.3z" opacity=".2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M7.6 11.89V4.7c0-.94 0-1.41-.3-1.7c-.28-.3-.76-.3-1.7-.3H4.3c-.94 0-1.42 0-1.7.3c-.3.29-.3.76-.3 1.7v8.36c0 2.3 1 8.22 9.71 8.22c8.7 0 9.71-6.16 9.71-8.22V4.7c0-.94 0-1.41-.3-1.7c-.28-.3-.76-.3-1.7-.3H18.4c-.94 0-1.41 0-1.7.3c-.3.29-.3.76-.3 1.7v7.18s0 4.27-4.39 4.27c-4.4 0-4.4-4.27-4.4-4.27M2.29 7.66h5m9.19 0h5.23"/></g></svg>

How to use the Magnet icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

<img src="https://iconyz.com/api/public/svg/andrsrxn/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. andrsrxn/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="andrsrxn: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/andrsrxn/magnet.svg" alt="Magnet icon">, or paste the SVG code inline to style it with CSS.

Browse all andrsrxn/icons →