Lock icon
A hand-drawn 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
- Interface
- Grid
- 24 × 24
- Strokes
- 1.5 · 2 · 2.5
- Name
lock
Stroke weights and sizes
Use it in React Native
The Icon component draws lock by name, sized and coloured from your theme. Add it with npx @lumioui/cli add icon.
TSX Example.tsx
import { Icon } from "@/components/ui/icon";
<Icon name="lock" size={24} />
// colour and stroke follow your theme; pass color / strokeWidth to override SVG code
The still glyph. The animated version, linked above, plays its motion on its own with SMIL, so it needs no script.
SVG lock.svg
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><g><g><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M8.4 10.6L8.4 8A3.6 3.6 0 0 1 15.6 8L15.6 10.6"></path></g></g><path stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M7.2 10.6L16.8 10.6C18.1 10.6 19.2 11.7 19.2 13L19.2 17.4C19.2 18.7 18.1 19.8 16.8 19.8L7.2 19.8C5.9 19.8 4.8 18.7 4.8 17.4L4.8 13C4.8 11.7 5.9 10.6 7.2 10.6Z"></path><circle stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" cx="12" cy="14.8" r="1.3"></circle><line stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="12" y1="15.7" x2="12" y2="17.2"></line></svg> On the web, link it straight from the CDN:
HTML index.html
<img src="https://cdn.lumioui.com/iconset/static/lock.svg" width="24" height="24" alt="Lock" /> Where LumioUI uses it
- Achievement Badge component
- Audio Recorder component
- Chat Composer component
- Error State component
- Payment Card component
- Address Card component
- Fab component
- Form component
- Level Progress component
- Notification Item component
- Ride Option component
- Shutter Button component
- Biometric Setup screen
- Forgot Password screen
- Login Editorial screen
- Login Illustrated screen
- Otp Verification screen
- Passkey Create screen
- Split Auth screen
- Chat Info screen
- Chat List screen
- Group Info screen
- Activity Log screen
- Find My Device screen