X icon
logos:x
The X icon (logos:x) is a free SVG icon from the SVG Logos set by Gil Barbara. It is drawn on a 251 × 256 grid. SVG Logos icons are released under the CC0 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
- SVG Logos
- Author
- Gil Barbara
- License
- CC0-1.0
- Size
- 251 × 256
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="251" height="256" viewBox="0 0 251 256"><path d="M149.079 108.399L242.33 0h-22.098l-80.97 94.12L74.59 0H0l97.796 142.328L0 256h22.1l85.507-99.395L175.905 256h74.59L149.073 108.399zM118.81 143.58l-9.909-14.172l-78.84-112.773h33.943l63.625 91.011l9.909 14.173l82.705 118.3H186.3l-67.49-96.533z"/></svg>How to use the X icon
React
import { Icon } from "@iconify/react";
<Icon icon="logos:x" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="logos:x" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="logos:x" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[logos--x]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/logos -->
<div class="i-logos:x"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="logos:x"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/logos/x.svg" alt="X icon" width="24" height="24">Related icons in SVG Logos
X icon in other icon sets
X icon FAQ
Is the X icon free for commercial use?
Yes. SVG Logos icons are released under the CC0 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="logos: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/logos/x.svg" alt="X icon">, or paste the SVG code inline to style it with CSS.