X icon
griddy-icons:x
The X icon (griddy-icons:x) is a free SVG icon from the Griddy Icons set by Zuzana Benova. It is drawn on a 24 × 24 grid. Griddy Icons 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.
- Icon set
- Griddy Icons
- Author
- Zuzana Benova
- License
- MIT
- Size
- 24 × 24
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="m20.796 3.765l-6.629 7.033L21.741 21h-6.118l-.225-.303l-4.657-6.271l-6.445 6.839l-1.092-1.03l6.629-7.033L2.259 3h6.118l.226.303l4.655 6.27l6.447-6.838zM16.378 19.5h2.38L7.623 4.5h-2.38z"/></svg>How to use the X icon
React
import { Icon } from "@iconify/react";
<Icon icon="griddy-icons:x" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="griddy-icons:x" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="griddy-icons:x" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[griddy-icons--x]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/griddy-icons -->
<div class="i-griddy-icons:x"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="griddy-icons:x"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/griddy-icons/x.svg" alt="X icon" width="24" height="24">Related icons in Griddy Icons
X icon in other icon sets
X icon FAQ
Is the X icon free for commercial use?
Yes. Griddy Icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the X icon in React?
Install @iconify/react and render <Icon icon="griddy-icons:x" />, or use “Copy code” on this page to get a standalone React component.
How do I add the X icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/griddy-icons/x.svg" alt="X icon">, or paste the SVG code inline to style it with CSS.