Lock 20 icon
energy-icons:lock-20
The Lock 20 icon (energy-icons:lock-20) is a free SVG icon from the Energy Icons set by Sam Passmore. It is drawn on a 20 × 20 grid. Energy Icons are released under the MIT license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- Energy Icons
- Author
- Sam Passmore
- License
- MIT
- Size
- 20 × 20
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="currentColor" d="M15 10a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1zm1 6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2z"/><path fill="currentColor" d="M13 8.5V6c0-1.624-1.376-3-3-3S7 4.376 7 6v2.5a.5.5 0 0 1-1 0V6c0-2.176 1.824-4 4-4s4 1.824 4 4v2.5a.5.5 0 0 1-1 0M9.5 14v-2a.5.5 0 0 1 1 0v2a.5.5 0 0 1-1 0"/></svg>How to use the Lock 20 icon
React
import { Icon } from "@iconify/react";
<Icon icon="energy-icons:lock-20" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="energy-icons:lock-20" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="energy-icons:lock-20" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[energy-icons--lock-20]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/energy-icons -->
<div class="i-energy-icons:lock-20"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="energy-icons:lock-20"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/energy-icons/lock-20.svg" alt="Lock 20 icon" width="24" height="24">Related icons in Energy Icons
Lock 20 icon FAQ
Is the Lock 20 icon free for commercial use?
Yes. Energy Icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Lock 20 icon in React?
Install @iconify/react and render <Icon icon="energy-icons:lock-20" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Lock 20 icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/energy-icons/lock-20.svg" alt="Lock 20 icon">, or paste the SVG code inline to style it with CSS.