Pencil icon
pajamas:pencil
The Pencil icon (pajamas:pencil) is a free SVG icon from the Gitlab SVGs set by GitLab B.V.. It is drawn on a 24 × 24 grid. Gitlab SVGs 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
- Gitlab SVGs
- Author
- GitLab B.V.
- 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="currentColor" fill-rule="evenodd" d="M2.5 13.5v-1.879l7.28-7.28l1.88 1.879l-7.28 7.28zm10.22-8.341l.805-.805a.5.5 0 0 0 0-.708l-1.171-1.171a.5.5 0 0 0-.708 0l-.805.805l1.879 1.88ZM1 13.5V11l9.586-9.586a2 2 0 0 1 2.828 0l1.172 1.172a2 2 0 0 1 0 2.828L5 15H1z" clip-rule="evenodd"/></svg>How to use the Pencil icon
React
import { Icon } from "@iconify/react";
<Icon icon="pajamas:pencil" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="pajamas:pencil" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="pajamas:pencil" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[pajamas--pencil]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/pajamas -->
<div class="i-pajamas:pencil"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="pajamas:pencil"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/pajamas/pencil.svg" alt="Pencil icon" width="24" height="24">Related icons in Gitlab SVGs
Pencil icon in other icon sets
Pencil icon FAQ
Is the Pencil icon free for commercial use?
Yes. Gitlab SVGs icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Pencil icon in React?
Install @iconify/react and render <Icon icon="pajamas:pencil" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Pencil icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/pajamas/pencil.svg" alt="Pencil icon">, or paste the SVG code inline to style it with CSS.