ICONYZ
English
Hospital icon from Unicons Thin Line

Hospital icon

uit:hospital

The Hospital icon (uit:hospital) is a free SVG icon from the Unicons Thin Line set by Iconscout. It is drawn on a 24 × 24 grid. Unicons Thin Line icons are released under the Apache 2.0 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
Unicons Thin Line
Author
Iconscout
License
Apache-2.0
Size
24 × 24
Category
Medical
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12.5 17h-1c-.3 0-.5.2-.5.5s.2.5.5.5h1c.3 0 .5-.2.5-.5s-.2-.5-.5-.5m-5-4h-1c-.3 0-.5.2-.5.5s.2.5.5.5h1c.3 0 .5-.2.5-.5s-.2-.5-.5-.5m5 0h-1c-.3 0-.5.2-.5.5s.2.5.5.5h1c.3 0 .5-.2.5-.5s-.2-.5-.5-.5m-5 4h-1c-.3 0-.5.2-.5.5s.2.5.5.5h1c.3 0 .5-.2.5-.5s-.2-.5-.5-.5m6-9.5h-1v-1c0-.3-.2-.5-.5-.5s-.5.2-.5.5v1h-1c-.3 0-.5.2-.5.5s.2.5.5.5h1v1c0 .3.2.5.5.5s.5-.2.5-.5v-1h1c.3 0 .5-.2.5-.5s-.2-.5-.5-.5m8-.5H18V2.5c0-.3-.2-.5-.5-.5h-11c-.3 0-.5.2-.5.5V7H2.5c-.3 0-.5.2-.5.5v14c0 .3.2.5.5.5h19c.3 0 .5-.2.5-.5v-14c0-.3-.2-.5-.5-.5M21 21H3V8h3.5c.3 0 .5-.2.5-.5V3h10v4.5c0 .3.2.5.5.5H21zm-3.5-4h-1c-.3 0-.5.2-.5.5s.2.5.5.5h1c.3 0 .5-.2.5-.5s-.2-.5-.5-.5m-1-4c-.3 0-.5.2-.5.5s.2.5.5.5h1c.3 0 .5-.2.5-.5s-.2-.5-.5-.5z"/></svg>

How to use the Hospital icon

React

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

<Icon icon="uit:hospital" width="24" />

Vue

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

<template>
  <Icon icon="uit:hospital" width="24" />
</template>

Svelte

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

<Icon icon="uit:hospital" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="uit:hospital"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/uit/hospital.svg" alt="Hospital icon" width="24" height="24">

Related icons in Unicons Thin Line

Hospital icon in other icon sets

Hospital icon FAQ

Is the Hospital icon free for commercial use?

Yes. Unicons Thin Line icons are released under the Apache 2.0 license, which allows use in personal and commercial projects.

How do I use the Hospital icon in React?

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

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

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

Browse all Unicons Thin Line icons →