X icon
foundation:x
The X icon (foundation:x) is a free SVG icon from the Foundation set by Zurb. It is drawn on a 100 × 100 grid. Foundation 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
- Foundation
- Author
- Zurb
- License
- MIT
- Size
- 100 × 100
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="currentColor" d="M84.707 68.752L65.951 49.998l18.75-18.752a1.99 1.99 0 0 0 0-2.813L71.566 15.295a1.99 1.99 0 0 0-2.814 0L49.999 34.047l-18.75-18.752c-.746-.747-2.067-.747-2.814 0L15.297 28.431a1.99 1.99 0 0 0 0 2.814L34.05 49.998L15.294 68.753a1.993 1.993 0 0 0 0 2.814L28.43 84.704a1.99 1.99 0 0 0 2.814 0l18.755-18.755l18.756 18.754c.389.388.896.583 1.407.583s1.019-.195 1.408-.583l13.138-13.137a1.99 1.99 0 0 0-.001-2.814"/></svg>How to use the X icon
React
import { Icon } from "@iconify/react";
<Icon icon="foundation:x" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="foundation:x" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="foundation:x" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[foundation--x]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/foundation -->
<div class="i-foundation:x"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="foundation:x"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/foundation/x.svg" alt="X icon" width="24" height="24">Related icons in Foundation
X icon in other icon sets
X icon FAQ
Is the X icon free for commercial use?
Yes. Foundation 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="foundation: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/foundation/x.svg" alt="X icon">, or paste the SVG code inline to style it with CSS.