The Heroicons pencil square icon depicts a pencil within a square, commonly used to represent an edit or modify action.
Common uses
- Edit post button
- Update profile settings
- Modify item details
Use it in React
Install
npm i @heroicons/reactImport & render
import { PencilSquareIcon } from '@heroicons/react/24/outline';
<PencilSquareIcon className="size-6" />Styles
Heroicons ships this icon in 4 styles — each its own import:
24/outline
<PencilSquareIcon className="size-6" />24/solid
<PencilSquareIcon className="size-6" />20/solid
<PencilSquareIcon className="size-6" />16/solid
<PencilSquareIcon className="size-6" />Details
- Library
- Heroicons (324 icons)
- License
- MIT
- viewBox
0 0 24 24- Keywords
- pencilsquareeditmodifyupdatesettings
FAQ
- What does the pencil square icon represent?
- It signifies an action to edit, modify, or update content or settings.
- How do I use the pencil square icon in React?
- Import it using `import { PencilSquareIcon } from '@heroicons/react/24/outline'` and then use it as a React component.
- What is the license for this icon?
- The Heroicons pencil square icon is available under the MIT license.
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 →