Lock icon
topcoat:lock
The Lock icon (topcoat:lock) is a free SVG icon from the TopCoat Icons set by TopCoat. It is drawn on a 42 × 42 grid. TopCoat Icons are released under the Apache 2.0 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
- TopCoat Icons
- Author
- TopCoat
- License
- Apache-2.0
- Size
- 42 × 42
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="42" height="42" viewBox="0 0 42 42"><path fill="none" d="M23.68 28.484c0-1.76-1.42-3.18-3.18-3.18s-3.18 1.42-3.18 3.18c0 1.412.91 2.6 2.17 3.02l-1.99 4.98h6l-1.99-4.98a3.18 3.18 0 0 0 2.17-3.02"/><path fill="currentColor" d="M20.5 6.411c5.98 0 8.67 5.073 9 10.073h5c-.09-9-4.67-14.903-14-14.983c-9.27-.09-14 6.983-14 14.983h4.969c.26-5 2.831-10.073 9.031-10.073m14 12.089h-28c-2.41 0-3 .655-3 2.984v17c0 2.49.561 3 3 3h28c2.609 0 3-.471 3-3v-17c0-2.458-.46-2.984-3-2.984m-11 17.984h-6l1.99-4.98a3.18 3.18 0 0 1-2.17-3.02c0-1.76 1.42-3.18 3.18-3.18s3.18 1.42 3.18 3.18c0 1.41-.91 2.6-2.17 3.02z"/></svg>How to use the Lock icon
React
import { Icon } from "@iconify/react";
<Icon icon="topcoat:lock" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="topcoat:lock" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="topcoat:lock" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[topcoat--lock]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/topcoat -->
<div class="i-topcoat:lock"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="topcoat:lock"></iconify-icon>HTML image
<img src="https://icons.sys.karaztherapy.ma/api/public/svg/topcoat/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. TopCoat Icons are released under the Apache 2.0 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="topcoat: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://icons.sys.karaztherapy.ma/api/public/svg/topcoat/lock.svg" alt="Lock icon">, or paste the SVG code inline to style it with CSS.