ICONYZ
English
Eraser icon from Codicons

Eraser icon

codicon:eraser

The Eraser icon (codicon:eraser) is a free SVG icon from the Codicons set by Microsoft Corporation. It is drawn on a 24 × 24 grid. Codicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
Codicons
Author
Microsoft Corporation
License
CC-BY-4.0
Size
24 × 24
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M14.5 6c0-.4-.156-.777-.439-1.061l-2.999-3c-.566-.567-1.558-.567-2.122 0l-7.501 7.5A1.5 1.5 0 0 0 1 10.5c0 .401.156.777.439 1.061l2 2c.283.283.66.439 1.061.439h7a.5.5 0 0 0 0-1H8.121l5.939-5.939A1.5 1.5 0 0 0 14.499 6zM4.146 12.854l-2-2a.5.5 0 0 1 0-.708L4.293 8L8 11.707L6.707 13H4.5a.5.5 0 0 1-.354-.146m9.208-6.5L8.708 11L5.001 7.293l4.647-4.647a.5.5 0 0 1 .707 0l3 3a.5.5 0 0 1-.001.708"/></svg>

How to use the Eraser icon

React

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

<Icon icon="codicon:eraser" width="24" />

Vue

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

<template>
  <Icon icon="codicon:eraser" width="24" />
</template>

Svelte

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

<Icon icon="codicon:eraser" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[codicon--eraser]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/codicon -->
<div class="i-codicon:eraser"></div>

Web component

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

<iconify-icon icon="codicon:eraser"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/codicon/eraser.svg" alt="Eraser icon" width="24" height="24">

Eraser icon in other icon sets

Eraser icon FAQ

Is the Eraser icon free for commercial use?

Yes. Codicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author.

How do I use the Eraser icon in React?

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

How do I add the Eraser icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/codicon/eraser.svg" alt="Eraser icon">, or paste the SVG code inline to style it with CSS.

Browse all Codicons →