Magnet icon
gravity-ui:magnet
The Magnet icon (gravity-ui:magnet) is a free SVG icon from the Gravity UI Icons set by YANDEX LLC. It is drawn on a 24 × 24 grid. Gravity 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
- Gravity UI Icons
- Author
- YANDEX LLC
- License
- MIT
- Size
- 24 × 24
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="M5.28 3.841L3.925 5.197a4.864 4.864 0 0 0 6.878 6.878l1.356-1.355l-1.379-1.38l-1.305 1.306a2.914 2.914 0 0 1-4.121-4.122L6.659 5.22zm1.061-1.06L7.72 4.158L8.879 3L7.5 1.621zM14.379 8.5l-1.16 1.159l-1.378-1.379L13 7.121zM2.864 4.136l3.64-3.64a1.41 1.41 0 0 1 1.992 0l1.737 1.737c.424.424.424 1.11 0 1.534L6.414 7.586a1.414 1.414 0 0 0 2 2l3.82-3.82a1.084 1.084 0 0 1 1.533 0l1.737 1.738c.55.55.55 1.442 0 1.992l-3.64 3.64a6.364 6.364 0 1 1-9-9" clip-rule="evenodd"/></svg>How to use the Magnet icon
React
import { Icon } from "@iconify/react";
<Icon icon="gravity-ui:magnet" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="gravity-ui:magnet" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="gravity-ui:magnet" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[gravity-ui--magnet]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/gravity-ui -->
<div class="i-gravity-ui:magnet"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="gravity-ui:magnet"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/gravity-ui/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. Gravity 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="gravity-ui: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/gravity-ui/magnet.svg" alt="Magnet icon">, or paste the SVG code inline to style it with CSS.