trash icon
trash from Material Line Icons by Vjacheslav Trushkin · Line · Interface · MIT Free for personal and commercial use.
- Name
- trash
- Set
- Material Line Icons
- Style
- Line
- Category
- Interface
- Viewbox
- 24×24
- License
- MIT
The same icon in other sets
trashAkar IconstrashBootstrap IconstrashBoxIcons v2trashBoxIcons v2 SolidtrashCodiconstrash-fillEva IconstrashFramework7 IconstrashFont Awesome 6 SolidtrashFont Awesome SolidtrashFeather Iconstrashcss.ggtrashHeroIconstrashHuge IconstrashHumbleiconstrashIconoirtrashIonIconstrashJam IconstrashLine AwesometrashLucidetrashMage IconstrashMajesticonstrashMyna UI Iconstrash-16OcticonstrashPhosphor
More interface icons from Material Line Icons
backup-restorecancelcancel-twotonecheck-allcirclecircle-filledcircle-filled-to-confirm-circle-filled-transitioncircle-to-confirm-circle-transitioncircle-to-confirm-circle-twotone-transitioncircle-twotonecircle-twotone-to-confirm-circle-transitioncircle-twotone-to-confirm-circle-twotone-transitioncloseclose-circleclose-circle-filledclose-circle-twotoneclose-smallclose-squareclose-square-filledclose-square-twotonecogcog-filledcog-filled-loopcog-loop
Use the trash 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" stroke-width="2"><path stroke-dasharray="24" d="M12 20h5c0.5 0 1 -0.5 1 -1v-14M12 20h-5c-0.5 0 -1 -0.5 -1 -1v-14"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.5s" values="24;0"/></path><path stroke-dasharray="18" stroke-dashoffset="18" d="M4 5h16"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.5s" dur="0.3s" to="0"/></path><path stroke-dasharray="10" stroke-dashoffset="10" d="M10 4h4M10 9v7M14 9v7"><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 LineMdTrash(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" strokeWidth="2"><path strokeDasharray="24" d="M12 20h5c0.5 0 1 -0.5 1 -1v-14M12 20h-5c-0.5 0 -1 -0.5 -1 -1v-14"><animate fill="freeze" attributeName="strokeDashoffset" dur="0.5s" values="24;0"/></path><path strokeDasharray="18" strokeDashoffset="18" d="M4 5h16"><animate fill="freeze" attributeName="strokeDashoffset" begin="0.5s" dur="0.3s" to="0"/></path><path strokeDasharray="10" strokeDashoffset="10" d="M10 4h4M10 9v7M14 9v7"><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" stroke-width="2"><path stroke-dasharray="24" d="M12 20h5c0.5 0 1 -0.5 1 -1v-14M12 20h-5c-0.5 0 -1 -0.5 -1 -1v-14"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.5s" values="24;0"/></path><path stroke-dasharray="18" stroke-dashoffset="18" d="M4 5h16"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.5s" dur="0.3s" to="0"/></path><path stroke-dasharray="10" stroke-dashoffset="10" d="M10 4h4M10 9v7M14 9v7"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.8s" dur="0.2s" to="0"/></path></g></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%2024%2024%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%3E%3Cpath%20stroke-dasharray%3D%2224%22%20d%3D%22M12%2020h5c0.5%200%201%20-0.5%201%20-1v-14M12%2020h-5c-0.5%200%20-1%20-0.5%20-1%20-1v-14%22%3E%3Canimate%20fill%3D%22freeze%22%20attributeName%3D%22stroke-dashoffset%22%20dur%3D%220.5s%22%20values%3D%2224%3B0%22%2F%3E%3C%2Fpath%3E%3Cpath%20stroke-dasharray%3D%2218%22%20stroke-dashoffset%3D%2218%22%20d%3D%22M4%205h16%22%3E%3Canimate%20fill%3D%22freeze%22%20attributeName%3D%22stroke-dashoffset%22%20begin%3D%220.5s%22%20dur%3D%220.3s%22%20to%3D%220%22%2F%3E%3C%2Fpath%3E%3Cpath%20stroke-dasharray%3D%2210%22%20stroke-dashoffset%3D%2210%22%20d%3D%22M10%204h4M10%209v7M14%209v7%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%20stroke-width%3D%222%22%3E%3Cpath%20stroke-dasharray%3D%2224%22%20d%3D%22M12%2020h5c0.5%200%201%20-0.5%201%20-1v-14M12%2020h-5c-0.5%200%20-1%20-0.5%20-1%20-1v-14%22%3E%3Canimate%20fill%3D%22freeze%22%20attributeName%3D%22stroke-dashoffset%22%20dur%3D%220.5s%22%20values%3D%2224%3B0%22%2F%3E%3C%2Fpath%3E%3Cpath%20stroke-dasharray%3D%2218%22%20stroke-dashoffset%3D%2218%22%20d%3D%22M4%205h16%22%3E%3Canimate%20fill%3D%22freeze%22%20attributeName%3D%22stroke-dashoffset%22%20begin%3D%220.5s%22%20dur%3D%220.3s%22%20to%3D%220%22%2F%3E%3C%2Fpath%3E%3Cpath%20stroke-dasharray%3D%2210%22%20stroke-dashoffset%3D%2210%22%20d%3D%22M10%204h4M10%209v7M14%209v7%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/trash.svg?color=%231a73e8&size=48