Pen icon
keyline-icons:pen
The Pen icon (keyline-icons:pen) is a free SVG icon from the Keyline Icons set. It is drawn on a 24 × 24 grid. Keyline 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
- Keyline Icons
- Author
- Keyline Icons
- License
- MIT
- Size
- 24 × 24
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21.0237 7.6904L9.8567 18.8573L2 22L5.1427 14.1433L16.3096 2.9763C16.9348 2.3512 17.7826 2 18.6667 2C19.5507 2 20.3986 2.3512 21.0237 2.9763C21.6488 3.6014 22 4.4493 22 5.3333C22 6.2174 21.6488 7.0652 21.0237 7.6904ZM15.0638 4.2222L19.7778 8.9362"/></svg>How to use the Pen icon
React
import { Icon } from "@iconify/react";
<Icon icon="keyline-icons:pen" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="keyline-icons:pen" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="keyline-icons:pen" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[keyline-icons--pen]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/keyline-icons -->
<div class="i-keyline-icons:pen"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="keyline-icons:pen"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/keyline-icons/pen.svg" alt="Pen icon" width="24" height="24">Related icons in Keyline Icons
pen-duotone
pen-fill
pen-line
pen-line-duotone
pen-line-fill
pen-line-sharp
pen-line-sharp-duotone
pen-line-sharp-fill
pen-line-sharp-two-tone
pen-line-two-tone
pen-off
pen-off-duotone
pen-off-fill
pen-off-sharp
pen-off-sharp-duotone
pen-off-sharp-fill
pen-off-sharp-two-tone
pen-off-two-tone
pen-sharp
pen-sharp-duotone
pen-sharp-fill
pen-sharp-two-tone
pen-sparkles
pen-sparkles-duotone
Pen icon in other icon sets
Pen icon FAQ
Is the Pen icon free for commercial use?
Yes. Keyline Icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Pen icon in React?
Install @iconify/react and render <Icon icon="keyline-icons:pen" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Pen icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/keyline-icons/pen.svg" alt="Pen icon">, or paste the SVG code inline to style it with CSS.