ICONYZ
English
Lock icon from Framework7 Icons

Lock icon

f7:lock

The Lock icon (f7:lock) is a free SVG icon from the Framework7 Icons set by Vladimir Kharlampidi. It is drawn on a 56 × 56 grid. Framework7 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
Framework7 Icons
Author
Vladimir Kharlampidi
License
MIT
Size
56 × 56
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="56" height="56" viewBox="0 0 56 56"><path fill="currentColor" d="M28 4.094c-6.54 0-12.516 4.664-12.516 14.25v5.32c-2.718.375-4.078 2.133-4.078 5.461v17.227c0 3.82 1.758 5.554 5.274 5.554h22.64c3.516 0 5.274-1.734 5.274-5.554V29.125c0-3.328-1.36-5.086-4.078-5.46v-5.321c0-9.586-5.977-14.25-12.516-14.25m-8.742 13.734c0-6.539 3.89-10.125 8.742-10.125c4.828 0 8.742 3.586 8.742 10.125v5.742H19.258Zm19.945 9.281c1.102 0 1.617.47 1.617 1.758v17.719c0 1.312-.515 1.805-1.617 1.805H16.797c-1.078 0-1.617-.493-1.617-1.805V28.867c0-1.289.539-1.758 1.617-1.758Z"/></svg>

How to use the Lock icon

React

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

<Icon icon="f7:lock" width="24" />

Vue

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

<template>
  <Icon icon="f7:lock" width="24" />
</template>

Svelte

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

<Icon icon="f7:lock" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[f7--lock]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/f7 -->
<div class="i-f7:lock"></div>

Web component

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

<iconify-icon icon="f7:lock"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/f7/lock.svg" alt="Lock icon" width="24" height="24">

Related icons in Framework7 Icons

Lock icon in other icon sets

Lock icon FAQ

Is the Lock icon free for commercial use?

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

How do I use the Lock icon in React?

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

How do I add the Lock icon to a web page?

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

Browse all Framework7 Icons →