pencil from Material Line Icons by Vjacheslav Trushkin · Line · Editing · MIT Free for personal and commercial use.

Name
pencil
Set
Material Line Icons
Style
Line
Category
Editing
Viewbox
24×24
License
MIT

The same icon in other sets

More editing icons from Material Line Icons

Use the pencil icon

SVG

<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"><g stroke-width="2"><path stroke-dasharray="56" d="M3 21l2 -6l11 -11c1 -1 3 -1 4 0c1 1 1 3 0 4l-11 11l-6 2"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.6s" values="56;0"/></path><path stroke-dasharray="8" stroke-dashoffset="8" d="M15 5l4 4"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.6s" dur="0.2s" to="0"/></path></g><path stroke-dasharray="8" stroke-dashoffset="8" d="M6 15l3 3"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.8s" dur="0.2s" to="0"/></path></g></svg>

React

import type { SVGProps } from "react";

export function LineMdPencil(props: SVGProps<SVGSVGElement>) {
  return (
    <svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round"><g strokeWidth="2"><path strokeDasharray="56" d="M3 21l2 -6l11 -11c1 -1 3 -1 4 0c1 1 1 3 0 4l-11 11l-6 2"><animate fill="freeze" attributeName="strokeDashoffset" dur="0.6s" values="56;0"/></path><path strokeDasharray="8" strokeDashoffset="8" d="M15 5l4 4"><animate fill="freeze" attributeName="strokeDashoffset" begin="0.6s" dur="0.2s" to="0"/></path></g><path strokeDasharray="8" strokeDashoffset="8" d="M6 15l3 3"><animate fill="freeze" attributeName="strokeDashoffset" begin="0.8s" dur="0.2s" to="0"/></path></g></svg>
  );
}

Vue

<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"><g stroke-width="2"><path stroke-dasharray="56" d="M3 21l2 -6l11 -11c1 -1 3 -1 4 0c1 1 1 3 0 4l-11 11l-6 2"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.6s" values="56;0"/></path><path stroke-dasharray="8" stroke-dashoffset="8" d="M15 5l4 4"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.6s" dur="0.2s" to="0"/></path></g><path stroke-dasharray="8" stroke-dashoffset="8" d="M6 15l3 3"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.8s" dur="0.2s" to="0"/></path></g></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%2024%2024%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cg%20stroke-width%3D%222%22%3E%3Cpath%20stroke-dasharray%3D%2256%22%20d%3D%22M3%2021l2%20-6l11%20-11c1%20-1%203%20-1%204%200c1%201%201%203%200%204l-11%2011l-6%202%22%3E%3Canimate%20fill%3D%22freeze%22%20attributeName%3D%22stroke-dashoffset%22%20dur%3D%220.6s%22%20values%3D%2256%3B0%22%2F%3E%3C%2Fpath%3E%3Cpath%20stroke-dasharray%3D%228%22%20stroke-dashoffset%3D%228%22%20d%3D%22M15%205l4%204%22%3E%3Canimate%20fill%3D%22freeze%22%20attributeName%3D%22stroke-dashoffset%22%20begin%3D%220.6s%22%20dur%3D%220.2s%22%20to%3D%220%22%2F%3E%3C%2Fpath%3E%3C%2Fg%3E%3Cpath%20stroke-dasharray%3D%228%22%20stroke-dashoffset%3D%228%22%20d%3D%22M6%2015l3%203%22%3E%3Canimate%20fill%3D%22freeze%22%20attributeName%3D%22stroke-dashoffset%22%20begin%3D%220.8s%22%20dur%3D%220.2s%22%20to%3D%220%22%2F%3E%3C%2Fpath%3E%3C%2Fg%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%2024%2024%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cg%20stroke-width%3D%222%22%3E%3Cpath%20stroke-dasharray%3D%2256%22%20d%3D%22M3%2021l2%20-6l11%20-11c1%20-1%203%20-1%204%200c1%201%201%203%200%204l-11%2011l-6%202%22%3E%3Canimate%20fill%3D%22freeze%22%20attributeName%3D%22stroke-dashoffset%22%20dur%3D%220.6s%22%20values%3D%2256%3B0%22%2F%3E%3C%2Fpath%3E%3Cpath%20stroke-dasharray%3D%228%22%20stroke-dashoffset%3D%228%22%20d%3D%22M15%205l4%204%22%3E%3Canimate%20fill%3D%22freeze%22%20attributeName%3D%22stroke-dashoffset%22%20begin%3D%220.6s%22%20dur%3D%220.2s%22%20to%3D%220%22%2F%3E%3C%2Fpath%3E%3C%2Fg%3E%3Cpath%20stroke-dasharray%3D%228%22%20stroke-dashoffset%3D%228%22%20d%3D%22M6%2015l3%203%22%3E%3Canimate%20fill%3D%22freeze%22%20attributeName%3D%22stroke-dashoffset%22%20begin%3D%220.8s%22%20dur%3D%220.2s%22%20to%3D%220%22%2F%3E%3C%2Fpath%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
}

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