Close SVG icon, line

Close SVG icon, line

Crossed diagonal strokes form an X for dismissing content. Use it on a modal window or at the edge of a notification banner.

Similar SVGs

More from Interface icons, line

How to use it

HTML <img>
<img src="https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/wSZcu6XQ8_tl/amnt.svg" alt="Close" width="48" height="48">
Inline SVG
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 4 20 20M20 4 4 20"/></svg>
CSS background-image
.close {
  background-image: url("https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/wSZcu6XQ8_tl/amnt.svg");
  background-size: contain;
}
CSS mask-image (takes the text colour)
.close {
  width: 1.5em; height: 1.5em;
  background-color: currentColor;
  mask: url("https://db.amnt.io/storage/v1/object/public/generated_images/svg-api/wSZcu6XQ8_tl/amnt.svg") center / contain no-repeat;
}
React
import CloseSvg from "./close.jsx"; // from the React tab above

<CloseSvg width={48} height={48} />

Tags

Made with AMNT

AMNT SVG 1.1 drew this from the words Close: Two diagonal strokes crossing at the center. as part of the pack Interface icons, line. Want one like it? Make your own in the SVG studio.

Licence: free. A Free account may use it for personal work; Pro and Max download it with a commercial licence, fixed at download, forever. No credit needed. Read the licence

Settings