close icon
close from Material Line Icons by Vjacheslav Trushkin · Line · Interface · MIT Free for personal and commercial use.
- Name
- close
- Set
- Material Line Icons
- Style
- Line
- Category
- Interface
- Viewbox
- 24×24
- License
- MIT
The same icon in other sets
close-outlinedAnt Design IconscloseCarboncloseCodiconscloseElement Plusclose-fillEva IconscloseFont Awesome Solidclose-outlineFlowbite Iconsclosecss.ggcloseIconParkcloseIconPark OutlinecloseIonIconscloseJam IconscloseSVG LogoscloseMajesticonscloseMaterial SymbolscloseMaterial Symbols LightcloseMaterial Design Iconsclose-fillMingCute IconcloseOpenMojiclosePixelarticonsclose-fillRemix Iconclose-boldSolarcloseTDesign Iconsclose-outlinedWeUI Icon
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-transitionclose-circleclose-circle-filledclose-circle-twotoneclose-smallclose-squareclose-square-filledclose-square-twotonecogcog-filledcog-filled-loopcog-loopcog-off
Use the close icon
SVG
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-dasharray="12" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 12l7 7M12 12l-7 -7M12 12l-7 7M12 12l7 -7"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.4s" values="12;0"/></path></svg>
React
import type { SVGProps } from "react";
export function LineMdClose(props: SVGProps<SVGSVGElement>) {
return (
<svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" strokeDasharray="12" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" d="M12 12l7 7M12 12l-7 -7M12 12l-7 7M12 12l7 -7"><animate fill="freeze" attributeName="strokeDashoffset" dur="0.4s" values="12;0"/></path></svg>
);
}
Vue
<template> <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-dasharray="12" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 12l7 7M12 12l-7 -7M12 12l-7 7M12 12l7 -7"><animate fill="freeze" attributeName="stroke-dashoffset" dur="0.4s" values="12;0"/></path></svg> </template>
CSS
.icon-close {
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%3Cpath%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-dasharray%3D%2212%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%20d%3D%22M12%2012l7%207M12%2012l-7%20-7M12%2012l-7%207M12%2012l7%20-7%22%3E%3Canimate%20fill%3D%22freeze%22%20attributeName%3D%22stroke-dashoffset%22%20dur%3D%220.4s%22%20values%3D%2212%3B0%22%2F%3E%3C%2Fpath%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%3Cpath%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-dasharray%3D%2212%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%222%22%20d%3D%22M12%2012l7%207M12%2012l-7%20-7M12%2012l-7%207M12%2012l7%20-7%22%3E%3Canimate%20fill%3D%22freeze%22%20attributeName%3D%22stroke-dashoffset%22%20dur%3D%220.4s%22%20values%3D%2212%3B0%22%2F%3E%3C%2Fpath%3E%3C%2Fsvg%3E") no-repeat center / contain;
}Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/line-md/close.svg?color=%231a73e8&size=48