Lock Small icon
codicon:lock-small
The Lock Small icon (codicon:lock-small) is a free SVG icon from the Codicons set by Microsoft Corporation. It is drawn on a 24 × 24 grid. Codicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- Codicons
- Author
- Microsoft Corporation
- License
- CC-BY-4.0
- Size
- 24 × 24
- Tags
- locksmall
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M11 7V5c0-1.654-1.346-3-3-3S5 3.346 5 5v2c-1.103 0-2 .897-2 2v3c0 1.103.897 2 2 2h6c1.103 0 2-.897 2-2V9c0-1.103-.897-2-2-2M6 5c0-1.103.897-2 2-2s2 .897 2 2v2H6zm6 7c0 .551-.449 1-1 1H5c-.551 0-1-.449-1-1V9c0-.551.449-1 1-1h6c.551 0 1 .449 1 1zm-3-2a1 1 0 1 1-2 0a1 1 0 0 1 2 0"/></svg>How to use the Lock Small icon
React
import { Icon } from "@iconify/react";
<Icon icon="codicon:lock-small" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="codicon:lock-small" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="codicon:lock-small" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[codicon--lock-small]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/codicon -->
<div class="i-codicon:lock-small"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="codicon:lock-small"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/codicon/lock-small.svg" alt="Lock Small icon" width="24" height="24">Related icons in Codicons
Lock Small icon in other icon sets
Lock Small icon FAQ
Is the Lock Small icon free for commercial use?
Yes. Codicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author.
How do I use the Lock Small icon in React?
Install @iconify/react and render <Icon icon="codicon:lock-small" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Lock Small icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/codicon/lock-small.svg" alt="Lock Small icon">, or paste the SVG code inline to style it with CSS.