ICONYZ
English
Diamonds icon from Boxicons

Diamonds icon

boxicons:diamonds

The Diamonds icon (boxicons:diamonds) is a free SVG icon from the Boxicons set. It is drawn on a 24 × 24 grid. Boxicons 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
Author
Boxicons
License
MIT
Size
24 × 24
Tags
diamond
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="m15.71 5.29l-3-3a.996.996 0 0 0-1.41 0l-3 3a.996.996 0 0 0 0 1.41l3 3c.2.2.45.29.71.29s.51-.1.71-.29l3-3a.996.996 0 0 0 0-1.41ZM12 7.58l-1.59-1.59L12 4.4l1.59 1.59zm-.71 6.71l-3 3a.996.996 0 0 0 0 1.41l3 3c.2.2.45.29.71.29s.51-.1.71-.29l3-3a.996.996 0 0 0 0-1.41l-3-3a.996.996 0 0 0-1.41 0ZM13.58 18l-1.59 1.59L10.4 18l1.59-1.59zm5.13-9.71a.996.996 0 0 0-1.41 0l-3 3a.996.996 0 0 0 0 1.41l3 3c.2.2.45.29.71.29s.51-.1.71-.29l3-3a.996.996 0 0 0 0-1.41l-3-3ZM18 13.58l-1.59-1.59L18 10.4l1.59 1.59zM6 16c.26 0 .51-.1.71-.29l3-3a.996.996 0 0 0 0-1.41l-3-3a.996.996 0 0 0-1.41 0l-3 3a.996.996 0 0 0 0 1.41l3 3c.2.2.45.29.71.29Zm0-5.59L7.59 12L6 13.59L4.41 12z"/></svg>

How to use the Diamonds icon

React

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

<Icon icon="boxicons:diamonds" width="24" />

Vue

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

<template>
  <Icon icon="boxicons:diamonds" width="24" />
</template>

Svelte

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

<Icon icon="boxicons:diamonds" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[boxicons--diamonds]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/boxicons -->
<div class="i-boxicons:diamonds"></div>

Web component

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

<iconify-icon icon="boxicons:diamonds"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/boxicons/diamonds.svg" alt="Diamonds icon" width="24" height="24">

Related icons in Boxicons

Diamonds icon in other icon sets

Diamonds icon FAQ

Is the Diamonds icon free for commercial use?

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

How do I use the Diamonds icon in React?

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

How do I add the Diamonds icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/boxicons/diamonds.svg" alt="Diamonds icon">, or paste the SVG code inline to style it with CSS.

Browse all Boxicons →