Magnet Solid icon
iconoir:magnet-solid
The Magnet Solid icon (iconoir:magnet-solid) is a free SVG icon from the Iconoir set by Luca Burgio. It is drawn on a 24 × 24 grid. Iconoir 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
- Iconoir
- Author
- Luca Burgio
- License
- MIT
- Size
- 24 × 24
- Category
- Science
- Tags
- magnetsolid
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="currentColor" stroke-width="1.5"><path d="M20 7.25a.75.75 0 0 1 .75.75v4.296c0 4.696-3.944 8.454-8.75 8.454s-8.75-3.758-8.75-8.454V8A.75.75 0 0 1 4 7.25h5.63a.75.75 0 0 1 .75.75v2.818c0 .734.665 1.432 1.62 1.432s1.62-.698 1.62-1.432V8a.75.75 0 0 1 .75-.75z"/><path fill-rule="evenodd" d="M3.25 4A.75.75 0 0 1 4 3.25h5.63a.75.75 0 0 1 .75.75v6.818c0 .734.665 1.432 1.62 1.432s1.62-.698 1.62-1.432V4a.75.75 0 0 1 .75-.75H20a.75.75 0 0 1 0 1.5h-4.88v6.068c0 1.677-1.456 2.932-3.12 2.932s-3.12-1.255-3.12-2.932V4.75H4A.75.75 0 0 1 3.25 4" clip-rule="evenodd"/><path fill-rule="evenodd" d="M4 9.75A.75.75 0 0 1 3.25 9V4a.75.75 0 0 1 1.5 0v5a.75.75 0 0 1-.75.75m16 0a.75.75 0 0 1-.75-.75V4a.75.75 0 0 1 1.5 0v5a.75.75 0 0 1-.75.75" clip-rule="evenodd"/></g></svg>How to use the Magnet Solid icon
React
import { Icon } from "@iconify/react";
<Icon icon="iconoir:magnet-solid" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="iconoir:magnet-solid" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="iconoir:magnet-solid" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[iconoir--magnet-solid]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/iconoir -->
<div class="i-iconoir:magnet-solid"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="iconoir:magnet-solid"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/iconoir/magnet-solid.svg" alt="Magnet Solid icon" width="24" height="24">Related icons in Iconoir
Magnet Solid icon in other icon sets
Magnet Solid icon FAQ
Is the Magnet Solid icon free for commercial use?
Yes. Iconoir icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Magnet Solid icon in React?
Install @iconify/react and render <Icon icon="iconoir:magnet-solid" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Magnet Solid icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/iconoir/magnet-solid.svg" alt="Magnet Solid icon">, or paste the SVG code inline to style it with CSS.