Building 2 icon
A hand-drawn building 2 icon that animates on its own: an SVG on a 24px grid in thin, regular and bold strokes. Free to download and use in the apps you build (LumioUI License). It takes your text colour through currentColor.
- Category
- Buildings
- Grid
- 24 × 24
- Strokes
- 1.5 · 2 · 2.5
- Name
building-2
Stroke weights and sizes
Use it in React Native
Paste the SVG into react-native-svg's SvgXml. The Icon component covers a curated set by name, and Animated Icons plays the motion natively.
TSX Building2Icon.tsx
import { SvgXml } from "react-native-svg";
const Building2Icon = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><rect stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x="5.2" y="3.4" width="13.6" height="17.2" rx="1.9"></rect><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M8.6 7.4L10.2 7.4M13.8 7.4L15.4 7.4M8.6 10.8L10.2 10.8M13.8 10.8L15.4 10.8M8.6 14.2L10.2 14.2M13.8 14.2L15.4 14.2"></path><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M10.8 20.6L10.8 18.2C10.8 17.5 11.3 17 12 17S13.2 17.5 13.2 18.2L13.2 20.6"></path><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M12 3.4L12 2.4"></path></svg>`;
<SvgXml xml={Building2Icon} width={24} height={24} color="#111" /> SVG code
The still glyph. The animated version, linked above, plays its motion on its own with SMIL, so it needs no script.
SVG building-2.svg
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><rect stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x="5.2" y="3.4" width="13.6" height="17.2" rx="1.9"></rect><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M8.6 7.4L10.2 7.4M13.8 7.4L15.4 7.4M8.6 10.8L10.2 10.8M13.8 10.8L15.4 10.8M8.6 14.2L10.2 14.2M13.8 14.2L15.4 14.2"></path><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M10.8 20.6L10.8 18.2C10.8 17.5 11.3 17 12 17S13.2 17.5 13.2 18.2L13.2 20.6"></path><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M12 3.4L12 2.4"></path></svg> On the web, link it straight from the CDN:
HTML index.html
<img src="https://cdn.lumioui.com/iconset/static/building-2.svg" width="24" height="24" alt="Building 2" />