ICONYZ
English
Magnet Line Duotone icon from Solar

Magnet Line Duotone icon

solar:magnet-line-duotone

The Magnet Line Duotone icon (solar:magnet-line-duotone) is a free SVG icon from the Solar set by 480 Design. It is drawn on a 24 × 24 grid. Solar icons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
Solar
Author
480 Design
License
CC-BY-4.0
Size
24 × 24
Category
UI
Tags
magnetline, lineduotone, magnetlineduotone
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="M21 18.5V20.5C21 21.3284 20.3284 22 19.5 22H17H13C7.47715 22 3 17.5228 3 12C3 6.47715 7.47715 2 13 2H17H19.5C20.3284 2 21 2.67157 21 3.5V5.5C21 6.32843 20.3284 7 19.5 7H17H13C10.2386 7 8 9.23858 8 12C8 14.7614 10.2386 17 13 17H17H19.5C20.3284 17 21 17.6716 21 18.5Z"/><path d="M17 2V7M17 17V22" opacity=".5"/></g></svg>

How to use the Magnet Line Duotone icon

React

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

<Icon icon="solar:magnet-line-duotone" width="24" />

Vue

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

<template>
  <Icon icon="solar:magnet-line-duotone" width="24" />
</template>

Svelte

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

<Icon icon="solar:magnet-line-duotone" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="solar:magnet-line-duotone"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/solar/magnet-line-duotone.svg" alt="Magnet Line Duotone icon" width="24" height="24">

Related icons in Solar

Magnet Line Duotone icon FAQ

Is the Magnet Line Duotone icon free for commercial use?

Yes. Solar icons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author.

How do I use the Magnet Line Duotone icon in React?

Install @iconify/react and render <Icon icon="solar:magnet-line-duotone" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Magnet Line Duotone icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/solar/magnet-line-duotone.svg" alt="Magnet Line Duotone icon">, or paste the SVG code inline to style it with CSS.

Browse all Solar icons →