Pencil icon
oui:pencil
The Pencil icon (oui:pencil) is a free SVG icon from the OpenSearch UI set by OpenSearch Contributors. It is drawn on a 24 × 24 grid. OpenSearch UI icons are released under the Apache 2.0 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
- OpenSearch UI
- Author
- OpenSearch Contributors
- License
- Apache-2.0
- 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" d="M12.148 3.148L11 2l-9 9v3h3l9-9l-1.144-1.144l-8.002 7.998a.5.5 0 0 1-.708 0a.5.5 0 0 1 0-.708zM11 1c.256 0 .512.098.707.293l3 3a1 1 0 0 1 0 1.414l-9 9A1 1 0 0 1 5 15H2a1 1 0 0 1-1-1v-3c0-.265.105-.52.293-.707l9-9A1 1 0 0 1 11 1M5 14H2v-3z"/></svg>How to use the Pencil icon
React
import { Icon } from "@iconify/react";
<Icon icon="oui:pencil" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="oui:pencil" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="oui:pencil" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[oui--pencil]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/oui -->
<div class="i-oui:pencil"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="oui:pencil"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/oui/pencil.svg" alt="Pencil icon" width="24" height="24">Pencil icon in other icon sets
Pencil icon FAQ
Is the Pencil icon free for commercial use?
Yes. OpenSearch UI icons are released under the Apache 2.0 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="oui: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/oui/pencil.svg" alt="Pencil icon">, or paste the SVG code inline to style it with CSS.