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 transform="translate(-1.68 -1.698) scale(1.14)"><g><g><path stroke="currentColor" stroke-width="1.754" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M7.8 10.4L7.8 8A4.2 4.2 0 0 1 16.2 8L16.2 10.4"></path></g></g><path stroke="currentColor" stroke-width="1.754" stroke-linecap="round" stroke-linejoin="round" fill="none" d="M7.6 10.4L16.4 10.4A3 3 0 0 1 19.4 13.4L19.4 17.4A3 3 0 0 1 16.4 20.4L7.6 20.4A3 3 0 0 1 4.6 17.4L4.6 13.4A3 3 0 0 1 7.6 10.4Z"></path><line stroke="currentColor" stroke-width="1.754" stroke-linecap="round" stroke-linejoin="round" fill="none" x1="12" y1="14.2" x2="12" y2="16.6"></line></g></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