Hospital icon
andrsrxn:hospital
The Hospital icon (andrsrxn:hospital) is a free SVG icon from the andrsrxn/icons set by Andrés Raxón. It is drawn on a 24 × 24 grid. andrsrxn/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
- andrsrxn/icons
- Author
- Andrés Raxón
- License
- MIT
- Size
- 24 × 24
- Category
- Medical
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none"><path fill="currentColor" d="M5.47 3.12h13.09V21.5h-3.8l-.36-6.33l-2.34-.59l-2.38.59l-.32 6.33H5.47z" opacity=".2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M18.93 10c.39 0 .58 0 .74.02a3 3 0 0 1 2.66 2.65c.02.17.02.36.02.75v2.32c0 2.58 0 3.87-.75 4.72l-.28.29c-.85.74-2.14.74-4.72.74H7.4c-2.58 0-3.87 0-4.72-.74l-.28-.29c-.75-.85-.75-2.14-.75-4.72v-2.41c0-.3 0-.46.02-.59a3 3 0 0 1 2.73-2.73l.58-.01"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M18.56 21.03V8.5c0-2.83 0-4.24-.88-5.12s-2.3-.88-5.12-.88h-1.09c-2.83 0-4.24 0-5.12.88s-.88 2.3-.88 5.12v12.52"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M14.58 21.03V17.6c0-1 0-1.5-.23-1.86a2 2 0 0 0-.47-.48c-.37-.23-.87-.23-1.87-.23s-1.5 0-1.86.23q-.29.18-.47.48c-.23.36-.23.86-.23 1.86v3.42M9.6 9.23h4.83m-2.42 2.42V6.82"/></g></svg>How to use the Hospital icon
React
import { Icon } from "@iconify/react";
<Icon icon="andrsrxn:hospital" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="andrsrxn:hospital" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="andrsrxn:hospital" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[andrsrxn--hospital]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/andrsrxn -->
<div class="i-andrsrxn:hospital"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="andrsrxn:hospital"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/andrsrxn/hospital.svg" alt="Hospital icon" width="24" height="24">Hospital icon in other icon sets
Hospital icon FAQ
Is the Hospital icon free for commercial use?
Yes. andrsrxn/icons are released under the MIT 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="andrsrxn: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/andrsrxn/hospital.svg" alt="Hospital icon">, or paste the SVG code inline to style it with CSS.