maps
Hospital icon
Hospital is an original glyphfox icon from the maps set, drawn on the 24 by 24 grid with 5 shapes. It is an open line drawing, so the solid style keeps the outline look. Tags: clinic, medical, health, building, emergency.
Sizes, weights and styles
Every glyphfox icon renders along three axes. The stroke grows a little below 24 px so small icons keep their presence.
Sizes
Weights
Styles
Copy the code
Pick a format. Each snippet uses the package entry point for that stack; the props work the same everywhere.
App.jsx
import { HospitalIcon } from 'glyphfox/react'; <HospitalIcon />
App.vue
<script setup> import { HospitalIcon } from 'glyphfox/vue'; </script> <template> <HospitalIcon /> </template>
App.svelte
<script> import { HospitalIcon } from 'glyphfox/svelte'; </script> <HospitalIcon />
app.component
import { GlyphFoxIcon, provideGlyphFox } from 'glyphfox-angular'; <gf-icon name="hospital"></gf-icon>
index.html
<glyph-fox name="hospital"></glyph-fox>
index.html
<script src="https://cdn.jsdelivr.net/npm/glyphfox@1"></script> <glyph-fox name="hospital"></glyph-fox>
index.html
<span class="gf-hospital" aria-hidden="true"></span>
hospital.svg
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="glyphfox glyphfox-hospital" aria-hidden="true"><path d="M4 21V7a1 1 0 0 1 1-1h3V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2h3a1 1 0 0 1 1 1v14"/><path d="M2 21h20"/><path d="M12 5.5v4M10 7.5h4"/><path d="M10 21v-4h4v4"/><path d="M7 11h.01M7 15h.01M17 11h.01M17 15h.01"/></svg>
data URI
data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='glyphfox glyphfox-hospital' aria-hidden='true'%3E%3Cpath d='M4 21V7a1 1 0 0 1 1-1h3V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2h3a1 1 0 0 1 1 1v14'/%3E%3Cpath d='M2 21h20'/%3E%3Cpath d='M12 5.5v4M10 7.5h4'/%3E%3Cpath d='M10 21v-4h4v4'/%3E%3Cpath d='M7 11h.01M7 15h.01M17 11h.01M17 15h.01'/%3E%3C/svg%3E
index.html
<!-- copy node_modules/glyphfox/dist/sprite.svg to your public folder --> <svg width="24" height="24" aria-hidden="true"> <use href="/sprite.svg#gf-hospital"></use> </svg>
index.html
<!-- main.js: import 'glyphfox/runtime'; --> <i data-glyph="hospital"></i>
icon.js
import { renderToString } from 'glyphfox/core'; import iconHospital from 'glyphfox/icons/hospital'; const svg = renderToString(iconHospital, { size: 24 }); // or, with every icon registered by name: // import { toSvg } from 'glyphfox'; // toSvg('hospital', { size: 24 });
Details
With a modifier badge
Add a badge in any corner with modifier or the name syntax. The icon is cut around the badge, so the result still passes the icon rules.
hospital+checkhospital+plushospital+xhospital+alertUse it in your stack
Guides with the install, the props and the pitfalls for each stack: