treasure chest icon
treasure-chest from IconPark by ByteDance · Color · Abstract · Apache-2.0 Free for personal and commercial use.
- Name
- treasure-chest
- Set
- IconPark
- Style
- Color
- Category
- Abstract
- Viewbox
- 48×48
- License
- Apache 2.0
The same icon in other sets
More abstract icons from IconPark
Use the treasure chest icon
SVG
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 48 48"><g fill="none" stroke="#000" stroke-linejoin="round" stroke-width="4"><path d="M42 4H6C4.89543 4 4 4.89543 4 6V42C4 43.1046 4.89543 44 6 44H42C43.1046 44 44 43.1046 44 42V6C44 4.89543 43.1046 4 42 4Z"/><path stroke-linecap="round" d="M4 24H17"/><path stroke-linecap="round" d="M31 24H44"/><path fill="#2F88FF" d="M24 31C27.866 31 31 27.866 31 24C31 20.134 27.866 17 24 17C20.134 17 17 20.134 17 24C17 27.866 20.134 31 24 31Z"/></g></svg>
React
import type { SVGProps } from "react";
export function IconParkTreasureChest(props: SVGProps<SVGSVGElement>) {
return (
<svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 48 48"><g fill="none" stroke="#000" strokeLinejoin="round" strokeWidth="4"><path d="M42 4H6C4.89543 4 4 4.89543 4 6V42C4 43.1046 4.89543 44 6 44H42C43.1046 44 44 43.1046 44 42V6C44 4.89543 43.1046 4 42 4Z"/><path strokeLinecap="round" d="M4 24H17"/><path strokeLinecap="round" d="M31 24H44"/><path fill="#2F88FF" d="M24 31C27.866 31 31 27.866 31 24C31 20.134 27.866 17 24 17C20.134 17 17 20.134 17 24C17 27.866 20.134 31 24 31Z"/></g></svg>
);
}
Vue
<template> <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 48 48"><g fill="none" stroke="#000" stroke-linejoin="round" stroke-width="4"><path d="M42 4H6C4.89543 4 4 4.89543 4 6V42C4 43.1046 4.89543 44 6 44H42C43.1046 44 44 43.1046 44 42V6C44 4.89543 43.1046 4 42 4Z"/><path stroke-linecap="round" d="M4 24H17"/><path stroke-linecap="round" d="M31 24H44"/><path fill="#2F88FF" d="M24 31C27.866 31 31 27.866 31 24C31 20.134 27.866 17 24 17C20.134 17 17 20.134 17 24C17 27.866 20.134 31 24 31Z"/></g></svg> </template>
CSS
.icon-treasure-chest {
width: 24px;
height: 24px;
background-color: currentColor;
-webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2048%2048%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%224%22%3E%3Cpath%20d%3D%22M42%204H6C4.89543%204%204%204.89543%204%206V42C4%2043.1046%204.89543%2044%206%2044H42C43.1046%2044%2044%2043.1046%2044%2042V6C44%204.89543%2043.1046%204%2042%204Z%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20d%3D%22M4%2024H17%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20d%3D%22M31%2024H44%22%2F%3E%3Cpath%20fill%3D%22%232F88FF%22%20d%3D%22M24%2031C27.866%2031%2031%2027.866%2031%2024C31%2020.134%2027.866%2017%2024%2017C20.134%2017%2017%2020.134%2017%2024C17%2027.866%2020.134%2031%2024%2031Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2048%2048%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-linejoin%3D%22round%22%20stroke-width%3D%224%22%3E%3Cpath%20d%3D%22M42%204H6C4.89543%204%204%204.89543%204%206V42C4%2043.1046%204.89543%2044%206%2044H42C43.1046%2044%2044%2043.1046%2044%2042V6C44%204.89543%2043.1046%204%2042%204Z%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20d%3D%22M4%2024H17%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20d%3D%22M31%2024H44%22%2F%3E%3Cpath%20fill%3D%22%232F88FF%22%20d%3D%22M24%2031C27.866%2031%2031%2027.866%2031%2024C31%2020.134%2027.866%2017%2024%2017C20.134%2017%2017%2020.134%2017%2024C17%2027.866%2020.134%2031%2024%2031Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
}Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/icon-park/treasure-chest.svg?color=%231a73e8&size=48