ICONYZ
English
Pencil Square Solid icon from HeroIcons

Pencil Square Solid icon

heroicons:pencil-square-solid

The Pencil Square Solid icon (heroicons:pencil-square-solid) is a free SVG icon from the HeroIcons set by Refactoring UI Inc. It is drawn on a 24 × 24 grid. HeroIcons 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
HeroIcons
Author
Refactoring UI Inc
License
MIT
Size
24 × 24
Tags
pencilsquare, squaresolid, pencilsquaresolid
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="currentColor"><path d="M21.731 2.269a2.625 2.625 0 0 0-3.712 0l-1.157 1.157l3.712 3.712l1.157-1.157a2.625 2.625 0 0 0 0-3.712m-2.218 5.93l-3.712-3.712l-8.4 8.4a5.25 5.25 0 0 0-1.32 2.214l-.8 2.685a.75.75 0 0 0 .933.933l2.685-.8a5.25 5.25 0 0 0 2.214-1.32z"/><path d="M5.25 5.25a3 3 0 0 0-3 3v10.5a3 3 0 0 0 3 3h10.5a3 3 0 0 0 3-3V13.5a.75.75 0 0 0-1.5 0v5.25a1.5 1.5 0 0 1-1.5 1.5H5.25a1.5 1.5 0 0 1-1.5-1.5V8.25a1.5 1.5 0 0 1 1.5-1.5h5.25a.75.75 0 0 0 0-1.5z"/></g></svg>

How to use the Pencil Square Solid icon

React

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

<Icon icon="heroicons:pencil-square-solid" width="24" />

Vue

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

<template>
  <Icon icon="heroicons:pencil-square-solid" width="24" />
</template>

Svelte

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

<Icon icon="heroicons:pencil-square-solid" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[heroicons--pencil-square-solid]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/heroicons -->
<div class="i-heroicons:pencil-square-solid"></div>

Web component

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

<iconify-icon icon="heroicons:pencil-square-solid"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/heroicons/pencil-square-solid.svg" alt="Pencil Square Solid icon" width="24" height="24">

Related icons in HeroIcons

Pencil Square Solid icon in other icon sets

Pencil Square Solid icon FAQ

Is the Pencil Square Solid icon free for commercial use?

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

How do I use the Pencil Square Solid icon in React?

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

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

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

Browse all HeroIcons →