ICONYZ
English
Building icon from Prime Icons

Building icon

prime:building

The Building icon (prime:building) is a free SVG icon from the Prime Icons set by PrimeTek. It is drawn on a 24 × 24 grid. Prime 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
Prime Icons
Author
PrimeTek
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"><rect width="2" height="2" x="9" y="6" fill="currentColor" rx=".5"/><rect width="2" height="2" x="13" y="6" fill="currentColor" rx=".5"/><rect width="2" height="2" x="9" y="9.5" fill="currentColor" rx=".5"/><rect width="2" height="2" x="13" y="9.5" fill="currentColor" rx=".5"/><rect width="2" height="2" x="9" y="13" fill="currentColor" rx=".5"/><rect width="2" height="2" x="13" y="13" fill="currentColor" rx=".5"/><path fill="currentColor" d="M18.25 19.25h-.5V4a.76.76 0 0 0-.75-.75H7a.76.76 0 0 0-.75.75v15.25h-.5a.75.75 0 0 0 0 1.5h12.5a.75.75 0 0 0 0-1.5m-2 0H11V17a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v2.25H7.75V4.75h8.5Z"/></svg>

How to use the Building icon

React

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

<Icon icon="prime:building" width="24" />

Vue

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

<template>
  <Icon icon="prime:building" width="24" />
</template>

Svelte

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

<Icon icon="prime:building" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="prime:building"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/prime/building.svg" alt="Building icon" width="24" height="24">

Related icons in Prime Icons

Building icon in other icon sets

Building icon FAQ

Is the Building icon free for commercial use?

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

How do I use the Building icon in React?

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

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

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

Browse all Prime Icons →