Skip to content
tablericons

shape

Square X icon

Download the Square X icon as free SVG or PNG. Compare outline and filled styles. Copy React, Vue or Svelte code.

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

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

Category
shape
Styles
Outline, filled
Component
IconSquareX
License
MIT · Paweł Kuna

Code

Copy it the way you use it

square-x.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="M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14" />
  <path d="M9 9l6 6m0 -6l-6 6" />
</svg>

Use the Square X 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 { IconSquareX } from '@tabler/icons-react';

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

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

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

Related

Related icons

See all 486 shape icons