X Circle icon
bxs:x-circle
The X Circle icon (bxs:x-circle) is a free SVG icon from the BoxIcons v2 Solid set by Boxicons. It is drawn on a 24 × 24 grid. BoxIcons v2 Solid 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
- BoxIcons v2 Solid
- Author
- Boxicons
- License
- MIT
- Size
- 24 × 24
- Tags
- xcircle
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12 2C6.486 2 2 6.486 2 12s4.486 10 10 10s10-4.486 10-10S17.514 2 12 2m4.207 12.793l-1.414 1.414L12 13.414l-2.793 2.793l-1.414-1.414L10.586 12L7.793 9.207l1.414-1.414L12 10.586l2.793-2.793l1.414 1.414L13.414 12z"/></svg>How to use the X Circle icon
React
import { Icon } from "@iconify/react";
<Icon icon="bxs:x-circle" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="bxs:x-circle" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="bxs:x-circle" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[bxs--x-circle]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/bxs -->
<div class="i-bxs:x-circle"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="bxs:x-circle"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/bxs/x-circle.svg" alt="X Circle icon" width="24" height="24">Related icons in BoxIcons v2 Solid
X Circle icon in other icon sets
X Circle icon FAQ
Is the X Circle icon free for commercial use?
Yes. BoxIcons v2 Solid icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the X Circle icon in React?
Install @iconify/react and render <Icon icon="bxs:x-circle" />, or use “Copy code” on this page to get a standalone React component.
How do I add the X Circle icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/bxs/x-circle.svg" alt="X Circle icon">, or paste the SVG code inline to style it with CSS.