hospital icon

hospital-linear from Solar by 480 Design · Linear · Building · CC-BY-4.0 Attribution required.

Name
hospital-linear
Set
Solar
Style
Linear
Category
Building
Viewbox
24×24
License
CC BY 4.0

5 other variants in Solar

The same icon in other sets

More building icons from Solar

Use the hospital icon

SVG

<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" d="M22 22L2 22"/><path d="M17 22V6C17 4.11438 17 3.17157 16.4142 2.58579C15.8284 2 14.8856 2 13 2H11C9.11438 2 8.17157 2 7.58579 2.58579C7 3.17157 7 4.11438 7 6V22"/><path d="M21 22V8.5C21 7.09554 21 6.39331 20.6629 5.88886C20.517 5.67048 20.3295 5.48298 20.1111 5.33706C19.6067 5 18.9045 5 17.5 5"/><path d="M3 22V8.5C3 7.09554 3 6.39331 3.33706 5.88886C3.48298 5.67048 3.67048 5.48298 3.88886 5.33706C4.39331 5 5.09554 5 6.5 5"/><path stroke-linecap="round" d="M12 22V19"/><path stroke-linecap="round" d="M10 12H14"/><path stroke-linecap="round" d="M5.5 11H7"/><path stroke-linecap="round" d="M5.5 14H7"/><path stroke-linecap="round" d="M17 11H18.5"/><path stroke-linecap="round" d="M17 14H18.5"/><path stroke-linecap="round" d="M5.5 8H7"/><path stroke-linecap="round" d="M17 8H18.5"/><path stroke-linecap="round" d="M10 15H14"/><path stroke-linecap="round" stroke-linejoin="round" d="M12 9V5"/><path stroke-linecap="round" stroke-linejoin="round" d="M14 7L10 7"/></g></svg>

React

import type { SVGProps } from "react";

export function SolarHospitalLinear(props: SVGProps<SVGSVGElement>) {
  return (
    <svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" strokeWidth="1.5"><path strokeLinecap="round" d="M22 22L2 22"/><path d="M17 22V6C17 4.11438 17 3.17157 16.4142 2.58579C15.8284 2 14.8856 2 13 2H11C9.11438 2 8.17157 2 7.58579 2.58579C7 3.17157 7 4.11438 7 6V22"/><path d="M21 22V8.5C21 7.09554 21 6.39331 20.6629 5.88886C20.517 5.67048 20.3295 5.48298 20.1111 5.33706C19.6067 5 18.9045 5 17.5 5"/><path d="M3 22V8.5C3 7.09554 3 6.39331 3.33706 5.88886C3.48298 5.67048 3.67048 5.48298 3.88886 5.33706C4.39331 5 5.09554 5 6.5 5"/><path strokeLinecap="round" d="M12 22V19"/><path strokeLinecap="round" d="M10 12H14"/><path strokeLinecap="round" d="M5.5 11H7"/><path strokeLinecap="round" d="M5.5 14H7"/><path strokeLinecap="round" d="M17 11H18.5"/><path strokeLinecap="round" d="M17 14H18.5"/><path strokeLinecap="round" d="M5.5 8H7"/><path strokeLinecap="round" d="M17 8H18.5"/><path strokeLinecap="round" d="M10 15H14"/><path strokeLinecap="round" strokeLinejoin="round" d="M12 9V5"/><path strokeLinecap="round" strokeLinejoin="round" d="M14 7L10 7"/></g></svg>
  );
}

Vue

<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-width="1.5"><path stroke-linecap="round" d="M22 22L2 22"/><path d="M17 22V6C17 4.11438 17 3.17157 16.4142 2.58579C15.8284 2 14.8856 2 13 2H11C9.11438 2 8.17157 2 7.58579 2.58579C7 3.17157 7 4.11438 7 6V22"/><path d="M21 22V8.5C21 7.09554 21 6.39331 20.6629 5.88886C20.517 5.67048 20.3295 5.48298 20.1111 5.33706C19.6067 5 18.9045 5 17.5 5"/><path d="M3 22V8.5C3 7.09554 3 6.39331 3.33706 5.88886C3.48298 5.67048 3.67048 5.48298 3.88886 5.33706C4.39331 5 5.09554 5 6.5 5"/><path stroke-linecap="round" d="M12 22V19"/><path stroke-linecap="round" d="M10 12H14"/><path stroke-linecap="round" d="M5.5 11H7"/><path stroke-linecap="round" d="M5.5 14H7"/><path stroke-linecap="round" d="M17 11H18.5"/><path stroke-linecap="round" d="M17 14H18.5"/><path stroke-linecap="round" d="M5.5 8H7"/><path stroke-linecap="round" d="M17 8H18.5"/><path stroke-linecap="round" d="M10 15H14"/><path stroke-linecap="round" stroke-linejoin="round" d="M12 9V5"/><path stroke-linecap="round" stroke-linejoin="round" d="M14 7L10 7"/></g></svg>
</template>

CSS

.icon-hospital-linear {
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.5%22%3E%3Cpath%20stroke-linecap%3D%22round%22%20d%3D%22M22%2022L2%2022%22%2F%3E%3Cpath%20d%3D%22M17%2022V6C17%204.11438%2017%203.17157%2016.4142%202.58579C15.8284%202%2014.8856%202%2013%202H11C9.11438%202%208.17157%202%207.58579%202.58579C7%203.17157%207%204.11438%207%206V22%22%2F%3E%3Cpath%20d%3D%22M21%2022V8.5C21%207.09554%2021%206.39331%2020.6629%205.88886C20.517%205.67048%2020.3295%205.48298%2020.1111%205.33706C19.6067%205%2018.9045%205%2017.5%205%22%2F%3E%3Cpath%20d%3D%22M3%2022V8.5C3%207.09554%203%206.39331%203.33706%205.88886C3.48298%205.67048%203.67048%205.48298%203.88886%205.33706C4.39331%205%205.09554%205%206.5%205%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20d%3D%22M12%2022V19%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20d%3D%22M10%2012H14%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20d%3D%22M5.5%2011H7%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20d%3D%22M5.5%2014H7%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20d%3D%22M17%2011H18.5%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20d%3D%22M17%2014H18.5%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20d%3D%22M5.5%208H7%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20d%3D%22M17%208H18.5%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20d%3D%22M10%2015H14%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M12%209V5%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M14%207L10%207%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.5%22%3E%3Cpath%20stroke-linecap%3D%22round%22%20d%3D%22M22%2022L2%2022%22%2F%3E%3Cpath%20d%3D%22M17%2022V6C17%204.11438%2017%203.17157%2016.4142%202.58579C15.8284%202%2014.8856%202%2013%202H11C9.11438%202%208.17157%202%207.58579%202.58579C7%203.17157%207%204.11438%207%206V22%22%2F%3E%3Cpath%20d%3D%22M21%2022V8.5C21%207.09554%2021%206.39331%2020.6629%205.88886C20.517%205.67048%2020.3295%205.48298%2020.1111%205.33706C19.6067%205%2018.9045%205%2017.5%205%22%2F%3E%3Cpath%20d%3D%22M3%2022V8.5C3%207.09554%203%206.39331%203.33706%205.88886C3.48298%205.67048%203.67048%205.48298%203.88886%205.33706C4.39331%205%205.09554%205%206.5%205%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20d%3D%22M12%2022V19%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20d%3D%22M10%2012H14%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20d%3D%22M5.5%2011H7%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20d%3D%22M5.5%2014H7%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20d%3D%22M17%2011H18.5%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20d%3D%22M17%2014H18.5%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20d%3D%22M5.5%208H7%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20d%3D%22M17%208H18.5%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20d%3D%22M10%2015H14%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M12%209V5%22%2F%3E%3Cpath%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20d%3D%22M14%207L10%207%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
}

Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/solar/hospital-linear.svg?color=%231a73e8&size=48