building icon

building from Carbon by IBM · Outline · Enterprise · Apache-2.0 Free for personal and commercial use.

Name
building
Set
Carbon
Style
Outline
Category
Enterprise
Viewbox
32×32
License
Apache 2.0

The same icon in other sets

More enterprise icons from Carbon

Use the building icon

SVG

<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 32 32"><path fill="currentColor" d="M28 2H16a2 2 0 0 0-2 2v10H4a2 2 0 0 0-2 2v14h28V4a2 2 0 0 0-2-2M9 28v-7h4v7Zm19 0H15v-8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v8H4V16h12V4h12Z"/><path fill="currentColor" d="M18 8h2v2h-2zm6 0h2v2h-2zm-6 6h2v2h-2zm6 0h2v2h-2zm-6 6h2v2h-2zm6 0h2v2h-2z"/></svg>

React

import type { SVGProps } from "react";

export function CarbonBuilding(props: SVGProps<SVGSVGElement>) {
  return (
    <svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 32 32"><path fill="currentColor" d="M28 2H16a2 2 0 0 0-2 2v10H4a2 2 0 0 0-2 2v14h28V4a2 2 0 0 0-2-2M9 28v-7h4v7Zm19 0H15v-8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v8H4V16h12V4h12Z"/><path fill="currentColor" d="M18 8h2v2h-2zm6 0h2v2h-2zm-6 6h2v2h-2zm6 0h2v2h-2zm-6 6h2v2h-2zm6 0h2v2h-2z"/></svg>
  );
}

Vue

<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 32 32"><path fill="currentColor" d="M28 2H16a2 2 0 0 0-2 2v10H4a2 2 0 0 0-2 2v14h28V4a2 2 0 0 0-2-2M9 28v-7h4v7Zm19 0H15v-8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v8H4V16h12V4h12Z"/><path fill="currentColor" d="M18 8h2v2h-2zm6 0h2v2h-2zm-6 6h2v2h-2zm6 0h2v2h-2zm-6 6h2v2h-2zm6 0h2v2h-2z"/></svg>
</template>

CSS

.icon-building {
  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%2032%2032%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M28%202H16a2%202%200%200%200-2%202v10H4a2%202%200%200%200-2%202v14h28V4a2%202%200%200%200-2-2M9%2028v-7h4v7Zm19%200H15v-8a1%201%200%200%200-1-1H8a1%201%200%200%200-1%201v8H4V16h12V4h12Z%22%2F%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M18%208h2v2h-2zm6%200h2v2h-2zm-6%206h2v2h-2zm6%200h2v2h-2zm-6%206h2v2h-2zm6%200h2v2h-2z%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%2032%2032%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M28%202H16a2%202%200%200%200-2%202v10H4a2%202%200%200%200-2%202v14h28V4a2%202%200%200%200-2-2M9%2028v-7h4v7Zm19%200H15v-8a1%201%200%200%200-1-1H8a1%201%200%200%200-1%201v8H4V16h12V4h12Z%22%2F%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M18%208h2v2h-2zm6%200h2v2h-2zm-6%206h2v2h-2zm6%200h2v2h-2zm-6%206h2v2h-2zm6%200h2v2h-2z%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}

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