Dice icon
jam:dice
The Dice icon (jam:dice) is a free SVG icon from the Jam Icons set by Michael Amprimo. It is drawn on a 20 × 20 grid. Jam 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
- Jam Icons
- Author
- Michael Amprimo
- License
- MIT
- Size
- 20 × 20
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="currentColor" d="M16 0a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4zm0 2H4a2 2 0 0 0-1.995 1.85L2 4v12a2 2 0 0 0 1.85 1.995L4 18h12a2 2 0 0 0 1.995-1.85L18 16V4a2 2 0 0 0-1.85-1.995zm-1 11a2 2 0 1 1 0 4a2 2 0 0 1 0-4m-5-5a2 2 0 1 1 0 4a2 2 0 0 1 0-4M5 3a2 2 0 1 1 0 4a2 2 0 0 1 0-4"/></svg>How to use the Dice icon
React
import { Icon } from "@iconify/react";
<Icon icon="jam:dice" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="jam:dice" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="jam:dice" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[jam--dice]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/jam -->
<div class="i-jam:dice"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="jam:dice"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/jam/dice.svg" alt="Dice icon" width="24" height="24">Related icons in Jam Icons
Dice icon in other icon sets
Dice icon FAQ
Is the Dice icon free for commercial use?
Yes. Jam Icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Dice icon in React?
Install @iconify/react and render <Icon icon="jam:dice" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Dice icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/jam/dice.svg" alt="Dice icon">, or paste the SVG code inline to style it with CSS.