Hospital icon
map:hospital
The Hospital icon (map:hospital) is a free SVG icon from the Map Icons set by Scott de Jonge. It is drawn on a 50 × 50 grid. Map Icons are released under the Open Font 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
- Map Icons
- Author
- Scott de Jonge
- License
- OFL-1.1
- Size
- 50 × 50
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 50 50"><path fill="currentColor" d="M37 1c-.55 0-1 .45-1 1v14c0 .55-.45 1-1 1H15c-.55 0-1-.45-1-1V2c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v46c0 .55.45 1 1 1h9c.55 0 1-.45 1-1V32c0-.55.45-1 1-1h20c.55 0 1 .45 1 1v16c0 .55.45 1 1 1h9c.55 0 1-.45 1-1V2c0-.55-.45-1-1-1z"/></svg>How to use the Hospital icon
React
import { Icon } from "@iconify/react";
<Icon icon="map:hospital" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="map:hospital" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="map:hospital" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[map--hospital]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/map -->
<div class="i-map:hospital"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="map:hospital"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/map/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. Map Icons are released under the Open Font 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="map: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/map/hospital.svg" alt="Hospital icon">, or paste the SVG code inline to style it with CSS.