softicons.dev

magnet icon

Free magnet SVG icon, MIT licensed. Copy the SVG, install for React/Vue/Angular, or download. Part of the Softicons interface set.

Setup guide
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
     fill="none" stroke="currentColor" stroke-width="2"
     stroke-linecap="round" stroke-linejoin="round">
  <path d="M6 3v7a6 6 0 0 0 12 0V3"/>
  <line x1="4" y1="3" x2="8" y2="3"/>
  <line x1="16" y1="3" x2="20" y2="3"/>
  <line x1="6" y1="10" x2="8" y2="10"/>
  <line x1="16" y1="10" x2="18" y2="10"/>
</svg>
<!-- via the CDN — no build step -->
<img src="https://cdn.softicons.dev/v1/icons/interface/magnet.svg"
     width="24" height="24" alt="magnet icon">

<!-- …or paste the raw SVG from the SVG tab -->
import { MagnetIcon } from "@softicons/react";

export default function Example() {
  return <MagnetIcon size={24} strokeWidth={2} />;
}
<script setup>
import { MagnetIcon } from "@softicons/vue";
</script>

<template>
  <MagnetIcon :size="24" :stroke-width="2" />
</template>
import { MagnetIconComponent } from "@softicons/angular";

@Component({
  standalone: true,
  imports: [MagnetIconComponent],
  template: `<magnet-icon [size]="24" [strokeWidth]="2" />`,
})
export class DemoComponent {}