John KuehJohn Kueh

pencil icon

Heroicons · pencil · MIT

Download SVG

The Heroicons pencil icon depicts a writing utensil and is commonly used to represent actions like editing, writing, or making changes.

Common uses

  • Edit button
  • Create new document
  • Annotate content

Use it in React

Install
npm i @heroicons/react
Import & render
import { PencilIcon } from '@heroicons/react/24/outline';

<PencilIcon className="size-6" />

Styles

Heroicons ships this icon in 4 styles — each its own import:

24/outline
<PencilIcon className="size-6" />
24/solid
<PencilIcon className="size-6" />
20/solid
<PencilIcon className="size-6" />
16/solid
<PencilIcon className="size-6" />

Details

Library
Heroicons (324 icons)
License
MIT
viewBox
0 0 24 24
Keywords
pencileditwritecomposeupdate

FAQ

What does the pencil icon represent?
It represents editing, writing, or making changes to content.
How do I use the pencil icon in React?
Import it using `import { PencilIcon } from '@heroicons/react/24/outline'` and then use it as a React component.
What is the license for Heroicons?
Heroicons are released under the MIT license, which allows for free usage.

Related icons

The same idea in other libraries, and near matches in Heroicons.

Looking for something else? Search Heroicons and 4 more libraries by description →

The search behind these pages runs as a Claude Code skill. What skills are and how I ship them →