ICONYZ
English
Locked 2 icon from Lineicons

Locked 2 icon

lineicons:locked-2

The Locked 2 icon (lineicons:locked-2) is a free SVG icon from the Lineicons set. It is drawn on a 24 × 24 grid. Lineicons 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
Lineicons
Author
Lineicons
License
MIT
Size
24 × 24
Category
regular
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M10.5 16a1.5 1.5 0 0 1 3 0v1.5a1.5 1.5 0 0 1-3 0z"/><path fill="currentColor" fill-rule="evenodd" d="M6.75 7.25a5.25 5.25 0 1 1 10.5 0v1.875h1.25a2.25 2.25 0 0 1 2.25 2.25v5.875A4.75 4.75 0 0 1 16 22H8a4.75 4.75 0 0 1-4.75-4.75v-5.875a2.25 2.25 0 0 1 2.25-2.25h1.25zm1.5 1.875h7.5V7.25a3.75 3.75 0 1 0-7.5 0zm-2.75 1.5a.75.75 0 0 0-.75.75v5.875A3.25 3.25 0 0 0 8 20.5h8a3.25 3.25 0 0 0 3.25-3.25v-5.875a.75.75 0 0 0-.75-.75z" clip-rule="evenodd"/></svg>

How to use the Locked 2 icon

React

import { Icon } from "@iconify/react";

<Icon icon="lineicons:locked-2" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="lineicons:locked-2" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="lineicons:locked-2" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[lineicons--locked-2]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/lineicons -->
<div class="i-lineicons:locked-2"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="lineicons:locked-2"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/lineicons/locked-2.svg" alt="Locked 2 icon" width="24" height="24">

Related icons in Lineicons

Locked 2 icon FAQ

Is the Locked 2 icon free for commercial use?

Yes. Lineicons are released under the MIT license, which allows use in personal and commercial projects.

How do I use the Locked 2 icon in React?

Install @iconify/react and render <Icon icon="lineicons:locked-2" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Locked 2 icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/lineicons/locked-2.svg" alt="Locked 2 icon">, or paste the SVG code inline to style it with CSS.

Browse all Lineicons →