cancel icon
cancel from Material Line Icons by Vjacheslav Trushkin · Line · Interface · MIT Free for personal and commercial use.
- Name
- cancel
- Set
- Material Line Icons
- Style
- Line
- Category
- Interface
- Viewbox
- 24×24
- License
- MIT
The same icon in other sets
More interface icons from Material Line Icons
backup-restorecancel-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-loopcog-off
Use the cancel 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="60" d="M5.64 5.64c3.51 -3.51 9.21 -3.51 12.73 0c3.51 3.51 3.51 9.21 0 12.73c-3.51 3.51 -9.21 3.51 -12.73 0c-3.51 -3.51 -3.51 -9.21 -0 -12.73Z"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.6s" values="60;0"/></path><path stroke-dasharray="20" stroke-dashoffset="20" d="M6 6l12 12"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.6s" dur="0.3s" to="0"/></path></g></svg>
React
import type { SVGProps } from "react";
export function LineMdCancel(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="60" d="M5.64 5.64c3.51 -3.51 9.21 -3.51 12.73 0c3.51 3.51 3.51 9.21 0 12.73c-3.51 3.51 -9.21 3.51 -12.73 0c-3.51 -3.51 -3.51 -9.21 -0 -12.73Z"><animate fill="freeze" attributeName="strokeDashoffset" dur="0.6s" values="60;0"/></path><path strokeDasharray="20" strokeDashoffset="20" d="M6 6l12 12"><animate fill="freeze" attributeName="strokeDashoffset" begin="0.6s" dur="0.3s" 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="60" d="M5.64 5.64c3.51 -3.51 9.21 -3.51 12.73 0c3.51 3.51 3.51 9.21 0 12.73c-3.51 3.51 -9.21 3.51 -12.73 0c-3.51 -3.51 -3.51 -9.21 -0 -12.73Z"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.6s" values="60;0"/></path><path stroke-dasharray="20" stroke-dashoffset="20" d="M6 6l12 12"><animate fill="freeze" attributeName="stroke-dashoffset" begin="0.6s" dur="0.3s" to="0"/></path></g></svg> </template>
CSS
.icon-cancel {
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%2260%22%20d%3D%22M5.64%205.64c3.51%20-3.51%209.21%20-3.51%2012.73%200c3.51%203.51%203.51%209.21%200%2012.73c-3.51%203.51%20-9.21%203.51%20-12.73%200c-3.51%20-3.51%20-3.51%20-9.21%20-0%20-12.73Z%22%3E%3Canimate%20fill%3D%22freeze%22%20attributeName%3D%22stroke-dashoffset%22%20dur%3D%220.6s%22%20values%3D%2260%3B0%22%2F%3E%3C%2Fpath%3E%3Cpath%20stroke-dasharray%3D%2220%22%20stroke-dashoffset%3D%2220%22%20d%3D%22M6%206l12%2012%22%3E%3Canimate%20fill%3D%22freeze%22%20attributeName%3D%22stroke-dashoffset%22%20begin%3D%220.6s%22%20dur%3D%220.3s%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%2260%22%20d%3D%22M5.64%205.64c3.51%20-3.51%209.21%20-3.51%2012.73%200c3.51%203.51%203.51%209.21%200%2012.73c-3.51%203.51%20-9.21%203.51%20-12.73%200c-3.51%20-3.51%20-3.51%20-9.21%20-0%20-12.73Z%22%3E%3Canimate%20fill%3D%22freeze%22%20attributeName%3D%22stroke-dashoffset%22%20dur%3D%220.6s%22%20values%3D%2260%3B0%22%2F%3E%3C%2Fpath%3E%3Cpath%20stroke-dasharray%3D%2220%22%20stroke-dashoffset%3D%2220%22%20d%3D%22M6%206l12%2012%22%3E%3Canimate%20fill%3D%22freeze%22%20attributeName%3D%22stroke-dashoffset%22%20begin%3D%220.6s%22%20dur%3D%220.3s%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/cancel.svg?color=%231a73e8&size=48