ICONYZ
English
X Diamond icon from Bootstrap Icons

X Diamond icon

bi:x-diamond

The X Diamond icon (bi:x-diamond) is a free SVG icon from the Bootstrap Icons set by The Bootstrap Authors. It is drawn on a 24 × 24 grid. Bootstrap 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
Bootstrap Icons
Author
The Bootstrap Authors
License
MIT
Size
24 × 24
Tags
xdiamond
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M7.987 16a1.53 1.53 0 0 1-1.07-.448L.45 9.082a1.53 1.53 0 0 1 0-2.165L6.917.45a1.53 1.53 0 0 1 2.166 0l6.469 6.468A1.53 1.53 0 0 1 16 8.013a1.53 1.53 0 0 1-.448 1.07l-6.47 6.469A1.53 1.53 0 0 1 7.988 16zM7.639 1.17L4.766 4.044L8 7.278l3.234-3.234L8.361 1.17a.51.51 0 0 0-.722 0M8.722 8l3.234 3.234l2.873-2.873c.2-.2.2-.523 0-.722l-2.873-2.873zM8 8.722l-3.234 3.234l2.873 2.873c.2.2.523.2.722 0l2.873-2.873zM7.278 8L4.044 4.766L1.17 7.639a.51.51 0 0 0 0 .722l2.874 2.873z"/></svg>

How to use the X Diamond icon

React

import { Icon } from "@iconify/react";

<Icon icon="bi:x-diamond" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="bi:x-diamond" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="bi:x-diamond" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[bi--x-diamond]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/bi -->
<div class="i-bi:x-diamond"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="bi:x-diamond"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/bi/x-diamond.svg" alt="X Diamond icon" width="24" height="24">

Related icons in Bootstrap Icons

X Diamond icon in other icon sets

X Diamond icon FAQ

Is the X Diamond icon free for commercial use?

Yes. Bootstrap Icons are released under the MIT license, which allows use in personal and commercial projects.

How do I use the X Diamond icon in React?

Install @iconify/react and render <Icon icon="bi:x-diamond" />, or use “Copy code” on this page to get a standalone React component.

How do I add the X Diamond icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/bi/x-diamond.svg" alt="X Diamond icon">, or paste the SVG code inline to style it with CSS.

Browse all Bootstrap Icons →