trash icon
trash from Codicons by Microsoft Corporation · Regular · CC-BY-4.0 Attribution required.
- Name
- trash
- Set
- Codicons
- Style
- Regular
- Viewbox
- 16×16
- License
- CC BY 4.0
The same icon in other sets
trashAkar IconstrashBootstrap IconstrashBoxIcons v2trashBoxIcons v2 Solidtrash-fillEva IconstrashFramework7 IconstrashFont Awesome 6 SolidtrashFont Awesome SolidtrashFeather Iconstrashcss.ggtrashHeroIconstrashHuge IconstrashHumbleiconstrashIconoirtrashIonIconstrashJam IconstrashLine AwesometrashMaterial Line IconstrashLucidetrashMage IconstrashMajesticonstrashMyna UI Iconstrash-16OcticonstrashPhosphor
Use the trash icon
SVG
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 16 16"><path fill="currentColor" d="M14 2h-4c0-1.103-.897-2-2-2S6 .897 6 2H2a.5.5 0 0 0 0 1h.54l.809 9.708A2.513 2.513 0 0 0 5.84 15h4.319a2.514 2.514 0 0 0 2.491-2.292L13.459 3h.54a.5.5 0 0 0 0-1zM8 1c.551 0 1 .449 1 1H7c0-.551.449-1 1-1m3.655 11.625A1.51 1.51 0 0 1 10.16 14H5.841a1.51 1.51 0 0 1-1.495-1.375L3.544 3h8.914l-.802 9.625zM7 5.5v6a.5.5 0 0 1-1 0v-6a.5.5 0 0 1 1 0m3 0v6a.5.5 0 0 1-1 0v-6a.5.5 0 0 1 1 0"/></svg>
React
import type { SVGProps } from "react";
export function CodiconTrash(props: SVGProps<SVGSVGElement>) {
return (
<svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 16 16"><path fill="currentColor" d="M14 2h-4c0-1.103-.897-2-2-2S6 .897 6 2H2a.5.5 0 0 0 0 1h.54l.809 9.708A2.513 2.513 0 0 0 5.84 15h4.319a2.514 2.514 0 0 0 2.491-2.292L13.459 3h.54a.5.5 0 0 0 0-1zM8 1c.551 0 1 .449 1 1H7c0-.551.449-1 1-1m3.655 11.625A1.51 1.51 0 0 1 10.16 14H5.841a1.51 1.51 0 0 1-1.495-1.375L3.544 3h8.914l-.802 9.625zM7 5.5v6a.5.5 0 0 1-1 0v-6a.5.5 0 0 1 1 0m3 0v6a.5.5 0 0 1-1 0v-6a.5.5 0 0 1 1 0"/></svg>
);
}
Vue
<template> <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 16 16"><path fill="currentColor" d="M14 2h-4c0-1.103-.897-2-2-2S6 .897 6 2H2a.5.5 0 0 0 0 1h.54l.809 9.708A2.513 2.513 0 0 0 5.84 15h4.319a2.514 2.514 0 0 0 2.491-2.292L13.459 3h.54a.5.5 0 0 0 0-1zM8 1c.551 0 1 .449 1 1H7c0-.551.449-1 1-1m3.655 11.625A1.51 1.51 0 0 1 10.16 14H5.841a1.51 1.51 0 0 1-1.495-1.375L3.544 3h8.914l-.802 9.625zM7 5.5v6a.5.5 0 0 1-1 0v-6a.5.5 0 0 1 1 0m3 0v6a.5.5 0 0 1-1 0v-6a.5.5 0 0 1 1 0"/></svg> </template>
CSS
.icon-trash {
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%2016%2016%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M14%202h-4c0-1.103-.897-2-2-2S6%20.897%206%202H2a.5.5%200%200%200%200%201h.54l.809%209.708A2.513%202.513%200%200%200%205.84%2015h4.319a2.514%202.514%200%200%200%202.491-2.292L13.459%203h.54a.5.5%200%200%200%200-1zM8%201c.551%200%201%20.449%201%201H7c0-.551.449-1%201-1m3.655%2011.625A1.51%201.51%200%200%201%2010.16%2014H5.841a1.51%201.51%200%200%201-1.495-1.375L3.544%203h8.914l-.802%209.625zM7%205.5v6a.5.5%200%200%201-1%200v-6a.5.5%200%200%201%201%200m3%200v6a.5.5%200%200%201-1%200v-6a.5.5%200%200%201%201%200%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%2016%2016%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M14%202h-4c0-1.103-.897-2-2-2S6%20.897%206%202H2a.5.5%200%200%200%200%201h.54l.809%209.708A2.513%202.513%200%200%200%205.84%2015h4.319a2.514%202.514%200%200%200%202.491-2.292L13.459%203h.54a.5.5%200%200%200%200-1zM8%201c.551%200%201%20.449%201%201H7c0-.551.449-1%201-1m3.655%2011.625A1.51%201.51%200%200%201%2010.16%2014H5.841a1.51%201.51%200%200%201-1.495-1.375L3.544%203h8.914l-.802%209.625zM7%205.5v6a.5.5%200%200%201-1%200v-6a.5.5%200%200%201%201%200m3%200v6a.5.5%200%200%201-1%200v-6a.5.5%200%200%201%201%200%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/codicon/trash.svg?color=%231a73e8&size=48