ICONYZ
English
Magnet icon from Myna UI Icons

Magnet icon

mynaui:magnet

The Magnet icon (mynaui:magnet) is a free SVG icon from the Myna UI Icons set by Praveen Juge. It is drawn on a 24 × 24 grid. Myna UI 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
Myna UI Icons
Author
Praveen Juge
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="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3 7.5V12a9 9 0 1 0 18 0V7.5m-18 0V5a2 2 0 0 1 2-2h1.625a2 2 0 0 1 2 2v2.5M3 7.5h5.625m0 0V12a3.375 3.375 0 1 0 6.75 0V7.5m0 0V5a2 2 0 0 1 2-2H19a2 2 0 0 1 2 2v2.5m-5.625 0H21"/></svg>

How to use the Magnet icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

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

Related icons in Myna UI Icons

Magnet icon in other icon sets

Magnet icon FAQ

Is the Magnet icon free for commercial use?

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

Browse all Myna UI Icons →