ICONYZ
English
Lock icon from uiw icons

Lock icon

uiw:lock

The Lock icon (uiw:lock) is a free SVG icon from the uiw icons set by liwen0526. It is drawn on a 20 × 20 grid. uiw 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
uiw icons
Author
liwen0526
License
MIT
Size
20 × 20
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="currentColor" d="M10 0a8 8 0 0 1 8 8v11a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V8a8 8 0 0 1 8-8m6.6 10.245H3.4V18.6h13.2zm-6.239 1.378a1.5 1.5 0 0 1 .695 2.83v2.169a.7.7 0 0 1-1.4 0v-2.175a1.5 1.5 0 0 1 .705-2.824M10 1.4A6.6 6.6 0 0 0 3.4 8v.845h13.2V8A6.6 6.6 0 0 0 10 1.4"/></svg>

How to use the Lock icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

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

Lock icon in other icon sets

Lock icon FAQ

Is the Lock icon free for commercial use?

Yes. uiw 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="uiw: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/uiw/lock.svg" alt="Lock icon">, or paste the SVG code inline to style it with CSS.

Browse all uiw icons →