ICONYZ
English
Magnet icon from OpenSearch UI

Magnet icon

oui:magnet

The Magnet icon (oui:magnet) is a free SVG icon from the OpenSearch UI set by OpenSearch Contributors. It is drawn on a 24 × 24 grid. OpenSearch UI icons are released under the Apache 2.0 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
OpenSearch UI
Author
OpenSearch Contributors
License
Apache-2.0
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="currentColor" d="M4.552 10.71a3.01 3.01 0 0 0 4.19.738l1.642-1.15l1.15 1.642l-1.643 1.15a5.013 5.013 0 1 1-5.75-8.212l1.642-1.15l1.15 1.643l-1.642 1.15a3.007 3.007 0 0 0-.739 4.189m8.296-2.137l1.15 1.643l-1.643 1.149l-1.15-1.642zm-4.6-6.571l1.15 1.643l-1.643 1.15l-1.15-1.642zm1.97 1.068L9.07 1.428a1.003 1.003 0 0 0-1.397-.246L3.566 4.057A6 6 0 0 0 1.092 7.94a6 6 0 0 0 .996 4.495a6 6 0 0 0 3.883 2.473a6 6 0 0 0 4.495-.996l4.107-2.875c.454-.318.563-.943.246-1.396l-1.15-1.643a1 1 0 0 0-1.396-.246l-4.107 2.875a2 2 0 0 1-1.498.332a2 2 0 0 1-1.627-2.323c.09-.505.371-.976.824-1.294l4.107-2.876c.454-.317.564-.942.246-1.396"/></svg>

How to use the Magnet icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

<img src="https://iconyz.com/api/public/svg/oui/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. OpenSearch UI icons are released under the Apache 2.0 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="oui: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/oui/magnet.svg" alt="Magnet icon">, or paste the SVG code inline to style it with CSS.

Browse all OpenSearch UI icons →