Skip to content
tablericons

ui

X Mark icon

Download the X Mark icon as free SVG or PNG. Customize its outline stroke. Copy React, Vue or Svelte code.

  • close
  • cancel
  • remove
  • delete
  • dismiss
  • exit
  • clear
  • cross
  • times
  • x
Size
Stroke
Color
Download SVG

Press C to copy SVG, J for JSX, D to download.

Category
ui
Styles
Outline
Component
IconXMark
License
MIT · Paweł Kuna

Code

Copy it the way you use it

x-mark.svg
<svg
  xmlns="http://www.w3.org/2000/svg"
  width="24"
  height="24"
  viewBox="0 0 24 24"
  fill="none"
  stroke="currentColor"
  stroke-width="2"
  stroke-linecap="round"
  stroke-linejoin="round"
 
>
  <path d="M12 16l3.644 3.644a1.21 1.21 0 0 0 1.712 0l2.288 -2.288a1.21 1.21 0 0 0 0 -1.712l-3.644 -3.644l3.644 -3.644a1.21 1.21 0 0 0 0 -1.712l-2.288 -2.288a1.21 1.21 0 0 0 -1.712 0l-3.644 3.644l-3.644 -3.644a1.21 1.21 0 0 0 -1.712 0l-2.288 2.288a1.21 1.21 0 0 0 0 1.712l3.644 3.644l-3.644 3.644a1.21 1.21 0 0 0 0 1.712l2.288 2.288a1.21 1.21 0 0 0 1.712 0l3.644 -3.644" />
</svg>

Use the X Mark icon

For a decorative icon beside text, add aria-hidden="true" to the SVG. For an icon-only control, put its accessible name on the button or link.

React example
import { IconXMark } from '@tabler/icons-react';

<IconXMark size={24} stroke={2} />
Read the React guide
Vue example
import { IconXMark } from '@tabler/icons-vue';

<IconXMark :size="24" :stroke="2" />
Read the Vue guide
Svelte 5 example
import { IconXMark } from '@tabler/icons-svelte-runes';

<IconXMark size={24} stroke={2} />
Read the Svelte guide

Related

Related icons

See all 508 ui icons