Key icon
A hand-drawn key 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
- Interface
- Grid
- 24 × 24
- Strokes
- 1.5 · 2 · 2.5
- Name
key
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 KeyIcon.tsx
import { SvgXml } from "react-native-svg";
const KeyIcon = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><g><circle stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" cx="7.6" cy="7.6" r="3.2"></circle><circle stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" cx="7.6" cy="7.6" r="1.05"></circle><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M10.1 10.1L18.8 18.8"></path><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M15.9 15.9L17.8 14M18.1 18.1L20 16.2"></path></g></svg>`;
<SvgXml xml={KeyIcon} 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 key.svg
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><g><circle stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" cx="7.6" cy="7.6" r="3.2"></circle><circle stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" cx="7.6" cy="7.6" r="1.05"></circle><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M10.1 10.1L18.8 18.8"></path><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M15.9 15.9L17.8 14M18.1 18.1L20 16.2"></path></g></svg> On the web, link it straight from the CDN:
HTML index.html
<img src="https://cdn.lumioui.com/iconset/static/key.svg" width="24" height="24" alt="Key" /> Related icons
Bitcoin Key
Book Key
File Key
Folder Key
Key Generator Fob
Key Round
Key Square
A Arrow Down
A Arrow Up
A Large Small
Align Center
Align Center Horizontal
Align Center Vertical
Align End Horizontal
Align End Vertical
Align Horizontal Distribute Center
Align Horizontal Distribute End
Align Horizontal Distribute Start