pencil from IconPark Solid by ByteDance · Solid · Apache-2.0 Free for personal and commercial use.

Name
pencil
Set
IconPark Solid
Style
Solid
Viewbox
48×48
License
Apache 2.0

The same icon in other sets

Use the pencil icon

SVG

<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 48 48"><mask id="ipSPencil2"><g fill="none"><g stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" clip-path="url(#ipSPencil3)"><path d="m31 8.999l8 8m-31 15L36 4l8 7.999l-28 28l-10 2l2-10Zm23-23l8 8m-30 15l7 7m-3-4l22-22"/></g><defs><clipPath id="ipSPencil3"><path fill="#000" d="M0 0h48v48H0z"/></clipPath></defs></g></mask><path fill="currentColor" d="M0 0h48v48H0z" mask="url(#ipSPencil2)"/></svg>

React

import type { SVGProps } from "react";

export function IconParkSolidPencil(props: SVGProps<SVGSVGElement>) {
  return (
    <svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 48 48"><mask id="ipSPencil2"><g fill="none"><g stroke="#fff" strokeLinecap="round" strokeLinejoin="round" strokeWidth="4" clipPath="url(#ipSPencil3)"><path d="m31 8.999l8 8m-31 15L36 4l8 7.999l-28 28l-10 2l2-10Zm23-23l8 8m-30 15l7 7m-3-4l22-22"/></g><defs><clipPath id="ipSPencil3"><path fill="#000" d="M0 0h48v48H0z"/></clipPath></defs></g></mask><path fill="currentColor" d="M0 0h48v48H0z" mask="url(#ipSPencil2)"/></svg>
  );
}

Vue

<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 48 48"><mask id="ipSPencil2"><g fill="none"><g stroke="#fff" stroke-linecap="round" stroke-linejoin="round" stroke-width="4" clip-path="url(#ipSPencil3)"><path d="m31 8.999l8 8m-31 15L36 4l8 7.999l-28 28l-10 2l2-10Zm23-23l8 8m-30 15l7 7m-3-4l22-22"/></g><defs><clipPath id="ipSPencil3"><path fill="#000" d="M0 0h48v48H0z"/></clipPath></defs></g></mask><path fill="currentColor" d="M0 0h48v48H0z" mask="url(#ipSPencil2)"/></svg>
</template>

CSS

.icon-pencil {
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2048%2048%22%3E%3Cmask%20id%3D%22ipSPencil2%22%3E%3Cg%20fill%3D%22none%22%3E%3Cg%20stroke%3D%22%23fff%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%224%22%20clip-path%3D%22url(%23ipSPencil3)%22%3E%3Cpath%20d%3D%22m31%208.999l8%208m-31%2015L36%204l8%207.999l-28%2028l-10%202l2-10Zm23-23l8%208m-30%2015l7%207m-3-4l22-22%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22ipSPencil3%22%3E%3Cpath%20fill%3D%22%23000%22%20d%3D%22M0%200h48v48H0z%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fg%3E%3C%2Fmask%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M0%200h48v48H0z%22%20mask%3D%22url(%23ipSPencil2)%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2048%2048%22%3E%3Cmask%20id%3D%22ipSPencil2%22%3E%3Cg%20fill%3D%22none%22%3E%3Cg%20stroke%3D%22%23fff%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%224%22%20clip-path%3D%22url(%23ipSPencil3)%22%3E%3Cpath%20d%3D%22m31%208.999l8%208m-31%2015L36%204l8%207.999l-28%2028l-10%202l2-10Zm23-23l8%208m-30%2015l7%207m-3-4l22-22%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22ipSPencil3%22%3E%3Cpath%20fill%3D%22%23000%22%20d%3D%22M0%200h48v48H0z%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fg%3E%3C%2Fmask%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M0%200h48v48H0z%22%20mask%3D%22url(%23ipSPencil2)%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}

Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/icon-park-solid/pencil.svg?color=%231a73e8&size=48