Xmark icon
lineicons:xmark
The Xmark icon (lineicons:xmark) is a free SVG icon from the Lineicons set. It is drawn on a 24 × 24 grid. Lineicons are released under the MIT license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M6.22 7.28a.75.75 0 0 1 1.06-1.06L12 10.938l4.719-4.718a.75.75 0 1 1 1.06 1.06L13.06 12l4.718 4.719a.75.75 0 1 1-1.06 1.06l-4.719-4.718l-4.719 4.718a.75.75 0 1 1-1.06-1.06L10.938 12z"/></svg>How to use the Xmark icon
React
import { Icon } from "@iconify/react";
<Icon icon="lineicons:xmark" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="lineicons:xmark" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="lineicons:xmark" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[lineicons--xmark]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/lineicons -->
<div class="i-lineicons:xmark"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="lineicons:xmark"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/lineicons/xmark.svg" alt="Xmark icon" width="24" height="24">Related icons in Lineicons
Xmark icon in other icon sets
Xmark icon FAQ
Is the Xmark icon free for commercial use?
Yes. Lineicons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Xmark icon in React?
Install @iconify/react and render <Icon icon="lineicons:xmark" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Xmark icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/lineicons/xmark.svg" alt="Xmark icon">, or paste the SVG code inline to style it with CSS.