ICONYZ
English
Magnet Straight Duotone icon from Phosphor

Magnet Straight Duotone icon

ph:magnet-straight-duotone

The Magnet Straight Duotone icon (ph:magnet-straight-duotone) is a free SVG icon from the Phosphor set by Phosphor Icons. It is drawn on a 256 × 256 grid. Phosphor 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
Phosphor
Author
Phosphor Icons
License
MIT
Size
256 × 256
Tags
magnetism, science, physics, magnetstraight, straightduotone, magnetstraightduotone
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256"><g fill="currentColor"><path d="M104 56v40H48V56a8 8 0 0 1 8-8h40a8 8 0 0 1 8 8m96-8h-40a8 8 0 0 0-8 8v40h56V56a8 8 0 0 0-8-8" opacity=".2"/><path d="M200 40h-40a16 16 0 0 0-16 16v88a16 16 0 0 1-32 0V56a16 16 0 0 0-16-16H56a16 16 0 0 0-16 16v88a88 88 0 0 0 88 88h.67c48.15-.36 87.33-40.29 87.33-89V56a16 16 0 0 0-16-16m0 16v32h-40V56ZM96 56v32H56V56Zm32.55 160A72 72 0 0 1 56 144v-40h40v40a32 32 0 0 0 64 0v-40h40v39c0 40-32 72.71-71.45 73"/></g></svg>

How to use the Magnet Straight Duotone icon

React

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

<Icon icon="ph:magnet-straight-duotone" width="24" />

Vue

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

<template>
  <Icon icon="ph:magnet-straight-duotone" width="24" />
</template>

Svelte

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

<Icon icon="ph:magnet-straight-duotone" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="ph:magnet-straight-duotone"></iconify-icon>

HTML image

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

Related icons in Phosphor

Magnet Straight Duotone icon FAQ

Is the Magnet Straight Duotone icon free for commercial use?

Yes. Phosphor icons are released under the MIT license, which allows use in personal and commercial projects.

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

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

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

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

Browse all Phosphor icons →