Hospital Icon

hospital · Bulding Infrastructure · 6 styles

Solar Icons draws Hospital as part of its Bulding Infrastructure collection. It is one of 7 glyphs in that category and one of 1,246 icons in the library overall, each drawn on the same 24x24 grid so Hospital lines up optically with everything around it. The icon is addressed in templates by the string "hospital", and every style variant resolves from that single name.

What the outline actually encodes is the idea of buildings, city blocks and physical infrastructure. That places Hospital in the Bulding Infrastructure family, which covers buildings, city blocks and physical infrastructure and turns up in address forms, office pickers, real-estate cards and company profiles. Teams building B2B apps that model organisations and locations reach for this set first. Use Hospital where the label alone would be ambiguous — an icon-only button, a dense table row, a mobile tab bar — and keep an accessible name on the control, because the SVG itself is decorative.

Hospital in 6 styles

Hospital is exported in 6 style variants: Bold, Bold Duotone, Linear, Outline, Broken and Line Duotone. Bold gives you solid filled shapes that hold their weight at 16px and read clearly against coloured backgrounds. Bold Duotone gives you a filled body with a second, lower-opacity layer that adds depth without a second colour token. Linear gives you even 1.5px strokes, the neutral default for dense interfaces and toolbars. A common pairing is Bold for the selected state and Line Duotone for the rest, so the active item reads without a colour change.

BoldHospitalBold
Bold DuotoneHospitalBoldDuotone
LinearHospitalLinear
OutlineHospitalOutline
BrokenHospitalBroken
Line DuotoneHospitalLineDuotone

How to use the hospital icon in Angular

Nothing is registered globally by default, so the import list is the bundle. Import HospitalBold from the "@rchernando/solar-icons/bulding-infrastructure" entry point, hand it to provideSolarIcons in your application config or in a route-level providers array, and render it with the solar-icon component. All 6 exports for hospital live in that same entry point, so switching style is a one-line change.

typescript
import { HospitalBold, HospitalBoldDuotone, HospitalLinear, HospitalOutline, HospitalBroken, HospitalLineDuotone } from '@rchernando/solar-icons/bulding-infrastructure';
typescript
import { ApplicationConfig } from '@angular/core';
import { provideSolarIcons } from '@rchernando/solar-icons';
import { HospitalBold } from '@rchernando/solar-icons/bulding-infrastructure';

export const appConfig: ApplicationConfig = {
  providers: [provideSolarIcons(HospitalBold)]
};
html
<solar-icon name="hospital" iconStyle="bold" size="24px" />
<solar-icon name="hospital" iconStyle="bold-duotone" size="24px" />
<solar-icon name="hospital" iconStyle="linear" size="24px" />
<solar-icon name="hospital" iconStyle="outline" size="24px" />
<solar-icon name="hospital" iconStyle="broken" size="24px" />
<solar-icon name="hospital" iconStyle="line-duotone" size="24px" />

More Bulding Infrastructure icons

Icons drawn alongside it in Bulding Infrastructure include Home, Garage, City, Buildings3, Buildings2 and Buildings. They share stroke weight and corner radius with Hospital, so mixing them in one toolbar stays consistent.

Browse all Bulding Infrastructure icons →

Icons related to Hospital

If Hospital is not quite the shape you want, Map Point Hospital share part of its name and often work as substitutes.

Elsewhere in the library

In other corners of the library, Sofa2, Text Field, Wallet2, Battery Full Minimalistic, Chat Line and Diagram Down cover neighbouring ideas; the name "hospital" is 8 characters long and splits into 1 token, which is how the explorer's search matches it.

Hospital icon FAQ

How do I use the hospital icon in Angular?
Import HospitalBold from "@rchernando/solar-icons/bulding-infrastructure", register it with provideSolarIcons(HospitalBold) and render <solar-icon name="hospital" iconStyle="bold" />. No HTTP request is made — the SVG is inlined at build time.
Which styles does Hospital support?
6 of them: Bold, Bold Duotone, Linear, Outline, Broken and Line Duotone. Each is a separate export, so you only ship the ones you import.
Can I change the size and colour of hospital?
Yes. The size input accepts any CSS length and the SVG uses currentColor, so Hospital inherits the text colour of its container — a Tailwind class such as text-violet-400 is enough.

One of 1,246 icons in the Solar Icons explorer. See also the installation guide and the styling reference.