ICONYZ
English
Building2 icon from Huge Icons

Building2 icon

hugeicons:building2

The Building2 icon (hugeicons:building2) is a free SVG icon from the Huge Icons set by Hugeicons. It is drawn on a 24 × 24 grid. Huge 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
Huge Icons
Author
Hugeicons
License
MIT
Size
24 × 24
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="M6 21c-.93 0-1.395 0-1.776-.102a3 3 0 0 1-2.122-2.122C2 18.396 2 17.93 2 17v-4c0-.93 0-1.395.102-1.777a3 3 0 0 1 2.122-2.12C4.605 9 5.07 9 6 9m12 12c.93 0 1.395 0 1.776-.102a3 3 0 0 0 2.122-2.122C22 18.396 22 17.93 22 17v-4c0-.93 0-1.395-.102-1.777a3 3 0 0 0-2.122-2.12C19.396 9 18.93 9 18 9m0 12V9c0-2.828 0-4.243-.879-5.121C16.243 3 14.828 3 12 3s-4.243 0-5.121.879C6 4.757 6 6.172 6 9v12z"/><path d="M10 21v-3c0-.943 0-1.414.293-1.707S11.057 16 12 16s1.414 0 1.707.293S14 17.057 14 18v3M10 8h4m-4 4h4"/></g></svg>

How to use the Building2 icon

React

import { Icon } from "@iconify/react";

<Icon icon="hugeicons:building2" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="hugeicons:building2" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="hugeicons:building2" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[hugeicons--building2]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/hugeicons -->
<div class="i-hugeicons:building2"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="hugeicons:building2"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/hugeicons/building2.svg" alt="Building2 icon" width="24" height="24">

Building2 icon in other icon sets

Building2 icon FAQ

Is the Building2 icon free for commercial use?

Yes. Huge Icons are released under the MIT license, which allows use in personal and commercial projects.

How do I use the Building2 icon in React?

Install @iconify/react and render <Icon icon="hugeicons:building2" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Building2 icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/hugeicons/building2.svg" alt="Building2 icon">, or paste the SVG code inline to style it with CSS.

Browse all Huge Icons →