softicons.dev

pen icon

Free pen 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="M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"/>
</svg>
<!-- via the CDN — no build step -->
<img src="https://cdn.softicons.dev/v1/icons/interface/pen.svg"
     width="24" height="24" alt="pen icon">

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

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

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

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