Locked icon
hugeicons:locked
The Locked icon (hugeicons:locked) is a free SVG icon from the Huge Icons set by Hugeicons. It is drawn on a 24 × 24 grid. Huge 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
- Huge Icons
- Author
- Hugeicons
- License
- MIT
- Size
- 24 × 24
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-width="1.5"><path stroke-linejoin="round" d="M2.5 8.187c.104-2.1.415-3.409 1.347-4.34c.93-.932 2.24-1.243 4.34-1.347M21.5 8.187c-.104-2.1-.415-3.409-1.347-4.34c-.93-.932-2.24-1.243-4.34-1.347m0 19c2.1-.104 3.41-.415 4.34-1.346c.932-.932 1.243-2.241 1.347-4.34M8.187 21.5c-2.1-.104-3.41-.415-4.34-1.346c-.932-.932-1.243-2.241-1.347-4.34"/><path d="M9.5 10.555c0-.842-.132-2.142.376-2.9c1.123-1.673 3.504-1.45 4.344.183c.412.802.257 1.923.276 2.717m-4.996 0c-1.297 0-1.562.742-1.76 1.325c-.183.655-.37 2.22-.084 3.934c.214 1.092 1.049 1.573 1.767 1.634c.687.058 3.587.036 4.426.036c1.301 0 2.113-.286 2.495-1.597c.183-1.02.233-2.842-.072-4.007c-.404-1.165-1.22-1.325-1.776-1.325m-4.996 0c1.374-.055 4.21-.044 4.996 0"/></g></svg>How to use the Locked icon
React
import { Icon } from "@iconify/react";
<Icon icon="hugeicons:locked" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="hugeicons:locked" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="hugeicons:locked" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[hugeicons--locked]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/hugeicons -->
<div class="i-hugeicons:locked"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="hugeicons:locked"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/hugeicons/locked.svg" alt="Locked icon" width="24" height="24">Locked icon in other icon sets
Locked icon FAQ
Is the Locked icon free for commercial use?
Yes. Huge Icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Locked icon in React?
Install @iconify/react and render <Icon icon="hugeicons:locked" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Locked icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/hugeicons/locked.svg" alt="Locked icon">, or paste the SVG code inline to style it with CSS.