Lock2 icon
reicon:lock2
The Lock2 icon (reicon:lock2) is a free SVG icon from the Reicon set. It is drawn on a 24 × 24 grid. Reicon 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.
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="M6 10V8c0-3.31 1-6 6-6s6 2.69 6 6v2m-6 8.5a2.5 2.5 0 1 0 0-5a2.5 2.5 0 0 0 0 5"/><path d="M17 22H7c-4 0-5-1-5-5v-2c0-4 1-5 5-5h10c4 0 5 1 5 5v2c0 4-1 5-5 5"/></g></svg>How to use the Lock2 icon
React
import { Icon } from "@iconify/react";
<Icon icon="reicon:lock2" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="reicon:lock2" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="reicon:lock2" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[reicon--lock2]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/reicon -->
<div class="i-reicon:lock2"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="reicon:lock2"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/reicon/lock2.svg" alt="Lock2 icon" width="24" height="24">Related icons in Reicon
Lock2 icon FAQ
Is the Lock2 icon free for commercial use?
Yes. Reicon icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Lock2 icon in React?
Install @iconify/react and render <Icon icon="reicon:lock2" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Lock2 icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/reicon/lock2.svg" alt="Lock2 icon">, or paste the SVG code inline to style it with CSS.