cuboid from BoxIcons v2 Solid by Boxicons · Solid · MIT Free for personal and commercial use.

Name
cuboid
Set
BoxIcons v2 Solid
Style
Solid
Viewbox
24×24
License
MIT

The same icon in other sets

Use the cuboid icon

SVG

<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M16.707 2.293A1 1 0 0 0 16 2H8c-.414 0-.785.255-.934.641l-5 13a1 1 0 0 0 .227 1.066l5 5A1 1 0 0 0 8 22h8c.414 0 .785-.255.934-.641l5-13a1 1 0 0 0-.227-1.066zM18.585 7h-5.171l-3-3h5.172zm-3.272 13h-6.23l4.583-11h5.878z"/></svg>

React

import type { SVGProps } from "react";

export function BxsCuboid(props: SVGProps<SVGSVGElement>) {
  return (
    <svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M16.707 2.293A1 1 0 0 0 16 2H8c-.414 0-.785.255-.934.641l-5 13a1 1 0 0 0 .227 1.066l5 5A1 1 0 0 0 8 22h8c.414 0 .785-.255.934-.641l5-13a1 1 0 0 0-.227-1.066zM18.585 7h-5.171l-3-3h5.172zm-3.272 13h-6.23l4.583-11h5.878z"/></svg>
  );
}

Vue

<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M16.707 2.293A1 1 0 0 0 16 2H8c-.414 0-.785.255-.934.641l-5 13a1 1 0 0 0 .227 1.066l5 5A1 1 0 0 0 8 22h8c.414 0 .785-.255.934-.641l5-13a1 1 0 0 0-.227-1.066zM18.585 7h-5.171l-3-3h5.172zm-3.272 13h-6.23l4.583-11h5.878z"/></svg>
</template>

CSS

.icon-cuboid {
  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%2024%2024%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M16.707%202.293A1%201%200%200%200%2016%202H8c-.414%200-.785.255-.934.641l-5%2013a1%201%200%200%200%20.227%201.066l5%205A1%201%200%200%200%208%2022h8c.414%200%20.785-.255.934-.641l5-13a1%201%200%200%200-.227-1.066zM18.585%207h-5.171l-3-3h5.172zm-3.272%2013h-6.23l4.583-11h5.878z%22%2F%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%2024%2024%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M16.707%202.293A1%201%200%200%200%2016%202H8c-.414%200-.785.255-.934.641l-5%2013a1%201%200%200%200%20.227%201.066l5%205A1%201%200%200%200%208%2022h8c.414%200%20.785-.255.934-.641l5-13a1%201%200%200%200-.227-1.066zM18.585%207h-5.171l-3-3h5.172zm-3.272%2013h-6.23l4.583-11h5.878z%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}

Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/bxs/cuboid.svg?color=%231a73e8&size=48