ICONYZ
English
Pencil 2 icon from Radix Icons

Pencil 2 icon

radix-icons:pencil-2

The Pencil 2 icon (radix-icons:pencil-2) is a free SVG icon from the Radix Icons set by WorkOS. It is drawn on a 15 × 15 grid. Radix 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
Radix Icons
Author
WorkOS
License
MIT
Size
15 × 15
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15"><path fill="currentColor" d="M9 3H4.9c-.428 0-.72 0-.945.019c-.219.018-.331.05-.41.09a1 1 0 0 0-.436.437c-.04.078-.073.19-.09.41C3 4.18 3 4.471 3 4.9v6.2c0 .428 0 .72.019.945c.017.219.05.33.09.41l.082.133a1 1 0 0 0 .355.303l.066.028c.075.027.179.049.343.062c.225.019.517.019.945.019h6.2c.428 0 .72 0 .945-.019c.219-.018.33-.05.409-.09l.134-.082q.192-.142.303-.355l.028-.066c.026-.075.049-.179.062-.343c.019-.225.019-.517.019-.945V7l1-1v5.1c0 .411 0 .75-.023 1.026c-.017.21-.049.409-.116.597l-.079.185a2 2 0 0 1-.736.797l-.138.077c-.243.124-.501.172-.782.195C11.85 14 11.51 14 11.1 14H4.9c-.411 0-.75 0-1.026-.023a2.3 2.3 0 0 1-.597-.116l-.185-.079a2 2 0 0 1-.797-.736l-.077-.138c-.124-.242-.173-.501-.196-.782C2 11.851 2 11.511 2 11.1V4.9c0-.411 0-.75.022-1.026c.023-.28.072-.54.196-.782a2 2 0 0 1 .874-.874c.242-.124.501-.172.782-.195C4.149 2 4.489 2 4.9 2H10zm3.225-1.918a.5.5 0 0 1 .628.065l2 2l.065.078a.5.5 0 0 1-.065.629l-3.942 3.942q-.115.115-.26.187L6.724 9.947a.5.5 0 0 1-.671-.67l1.964-3.928q.072-.145.187-.26l3.942-3.942zM8.91 5.796L7.872 7.872l.255.255l2.077-1.038L13.793 3.5L12.5 2.207z"/></svg>

How to use the Pencil 2 icon

React

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

<Icon icon="radix-icons:pencil-2" width="24" />

Vue

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

<template>
  <Icon icon="radix-icons:pencil-2" width="24" />
</template>

Svelte

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

<Icon icon="radix-icons:pencil-2" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[radix-icons--pencil-2]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/radix-icons -->
<div class="i-radix-icons:pencil-2"></div>

Web component

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

<iconify-icon icon="radix-icons:pencil-2"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/radix-icons/pencil-2.svg" alt="Pencil 2 icon" width="24" height="24">

Related icons in Radix Icons

Pencil 2 icon in other icon sets

Pencil 2 icon FAQ

Is the Pencil 2 icon free for commercial use?

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

How do I use the Pencil 2 icon in React?

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

How do I add the Pencil 2 icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/radix-icons/pencil-2.svg" alt="Pencil 2 icon">, or paste the SVG code inline to style it with CSS.

Browse all Radix Icons →