Door Lock icon
A hand-drawn door lock 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
- Wayfinding
- Grid
- 24 × 24
- Strokes
- 1.5 · 2 · 2.5
- Name
door-lock
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 DoorLockIcon.tsx
import { SvgXml } from "react-native-svg";
const DoorLockIcon = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M6.5 21L6.5 7.4C6.5 4.8 8.4 3.25 12 3.25C15.6 3.25 17.5 4.8 17.5 7.4L17.5 21"></path><g><g><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M10.3 13.6L10.3 12.25A1.7 1.7 0 0 1 13.7 12.25L13.7 13.6"></path></g></g><circle stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" cx="12" cy="15.6" r="2.75"></circle><circle stroke="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="currentColor" cx="12" cy="15.6" r="0.7"></circle><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="3.25" y1="21" x2="20.75" y2="21"></line></svg>`;
<SvgXml xml={DoorLockIcon} 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 door-lock.svg
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M6.5 21L6.5 7.4C6.5 4.8 8.4 3.25 12 3.25C15.6 3.25 17.5 4.8 17.5 7.4L17.5 21"></path><g><g><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M10.3 13.6L10.3 12.25A1.7 1.7 0 0 1 13.7 12.25L13.7 13.6"></path></g></g><circle stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" cx="12" cy="15.6" r="2.75"></circle><circle stroke="none" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="currentColor" cx="12" cy="15.6" r="0.7"></circle><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="3.25" y1="21" x2="20.75" y2="21"></line></svg> On the web, link it straight from the CDN:
HTML index.html
<img src="https://cdn.lumioui.com/iconset/static/door-lock.svg" width="24" height="24" alt="Door Lock" />