Treasure Chest icon
ph:treasure-chest
The Treasure Chest icon (ph:treasure-chest) is a free SVG icon from the Phosphor set by Phosphor Icons. It is drawn on a 256 × 256 grid. Phosphor 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
- Phosphor
- Author
- Phosphor Icons
- License
- MIT
- Size
- 256 × 256
- Tags
- loot, lootbox, inventory, rewards, gaming, pirate, treasurechest
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="256" height="256" viewBox="0 0 256 256"><path fill="currentColor" d="M184 40H72a56.06 56.06 0 0 0-56 56v96a16 16 0 0 0 16 16h192a16 16 0 0 0 16-16V96a56.06 56.06 0 0 0-56-56m40 56v8h-32V56.8A40.07 40.07 0 0 1 224 96m-88 40h-16v-32h16Zm-24 16h32a8 8 0 0 0 8-8v-24h24v72H80v-72h24v24a8 8 0 0 0 8 8m40-48v-8a8 8 0 0 0-8-8h-32a8 8 0 0 0-8 8v8H80V56h96v48ZM64 56.8V104H32v-8a40.07 40.07 0 0 1 32-39.2M32 120h32v72H32Zm192 72h-32v-72h32z"/></svg>How to use the Treasure Chest icon
React
import { Icon } from "@iconify/react";
<Icon icon="ph:treasure-chest" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="ph:treasure-chest" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="ph:treasure-chest" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[ph--treasure-chest]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/ph -->
<div class="i-ph:treasure-chest"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="ph:treasure-chest"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/ph/treasure-chest.svg" alt="Treasure Chest icon" width="24" height="24">Related icons in Phosphor
Treasure Chest icon in other icon sets
Treasure Chest icon FAQ
Is the Treasure Chest icon free for commercial use?
Yes. Phosphor icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Treasure Chest icon in React?
Install @iconify/react and render <Icon icon="ph:treasure-chest" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Treasure Chest icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/ph/treasure-chest.svg" alt="Treasure Chest icon">, or paste the SVG code inline to style it with CSS.