Magnet icon
fa:magnet
The Magnet icon (fa:magnet) is a free SVG icon from the Font Awesome 4 set by Dave Gandy. It is drawn on a 1536 × 1536 grid. Font Awesome 4 icons are released under the Open Font 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
- Font Awesome 4
- Author
- Dave Gandy
- License
- OFL-1.1
- Size
- 1536 × 1536
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="1536" height="1536" viewBox="0 0 1536 1536"><path fill="currentColor" d="M1536 704v128q0 201-98.5 362t-274 251.5T768 1536t-395.5-90.5t-274-251.5T0 832V704q0-26 19-45t45-19h384q26 0 45 19t19 45v128q0 52 23.5 90t53.5 57t71 30t64 13t44 2t44-2t64-13t71-30t53.5-57t23.5-90V704q0-26 19-45t45-19h384q26 0 45 19t19 45M512 64v384q0 26-19 45t-45 19H64q-26 0-45-19T0 448V64q0-26 19-45T64 0h384q26 0 45 19t19 45m1024 0v384q0 26-19 45t-45 19h-384q-26 0-45-19t-19-45V64q0-26 19-45t45-19h384q26 0 45 19t19 45"/></svg>How to use the Magnet icon
React
import { Icon } from "@iconify/react";
<Icon icon="fa:magnet" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="fa:magnet" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="fa:magnet" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[fa--magnet]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/fa -->
<div class="i-fa:magnet"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="fa:magnet"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/fa/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. Font Awesome 4 icons are released under the Open Font 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="fa: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/fa/magnet.svg" alt="Magnet icon">, or paste the SVG code inline to style it with CSS.