X Square icon
vs:x-square
The X Square icon (vs:x-square) is a free SVG icon from the Vesper Icons set by TableCheck. It is drawn on a 1792 × 1792 grid. Vesper Icons are released under the Open Font License, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- Vesper Icons
- Author
- TableCheck
- License
- OFL-1.1
- Size
- 1792 × 1792
- Tags
- xsquare
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="1792" height="1792" viewBox="0 0 1792 1792"><path fill="currentColor" d="M336 0h1120q139 0 237.5 98.5T1792 336v1120q0 139-98.5 237.5T1456 1792H336q-139 0-237.5-98.5T0 1456V336Q0 197 98.5 98.5T336 0m560 1097l265 321q19 24 29 35t30.5 25.5t38.5 14.5h159q27 0 51-15t24-40q0-20-34-60l-399-482l399-482q34-40 34-60q0-25-24-40t-51-15h-159q-18 0-38.5 14.5T1190 339t-29 35L896 695L631 374q-19-24-29-35t-30.5-25.5T533 299H374q-27 0-51 15t-24 40q0 20 34 60l399 482l-399 482q-34 40-34 60q0 25 24 40t51 15h159q18 0 38.5-14.5T602 1453t29-35z"/></svg>How to use the X Square icon
React
import { Icon } from "@iconify/react";
<Icon icon="vs:x-square" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="vs:x-square" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="vs:x-square" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[vs--x-square]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/vs -->
<div class="i-vs:x-square"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="vs:x-square"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/vs/x-square.svg" alt="X Square icon" width="24" height="24">X Square icon in other icon sets
X Square icon FAQ
Is the X Square icon free for commercial use?
Yes. Vesper Icons are released under the Open Font License, which allows use in personal and commercial projects.
How do I use the X Square icon in React?
Install @iconify/react and render <Icon icon="vs:x-square" />, or use “Copy code” on this page to get a standalone React component.
How do I add the X Square icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/vs/x-square.svg" alt="X Square icon">, or paste the SVG code inline to style it with CSS.