Lock Closed 24 icon
fluent-color:lock-closed-24
The Lock Closed 24 icon (fluent-color:lock-closed-24) is a free SVG icon from the Fluent UI System Color Icons set by Microsoft Corporation. It is drawn on a 24 × 24 grid. Fluent UI System Color 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
- Fluent UI System Color Icons
- Author
- Microsoft Corporation
- License
- MIT
- Size
- 24 × 24
- Tags
- lockclosed
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none"><path fill="url(#SVGZFAsATbD)" d="M12 2a4 4 0 0 0-4 4v1.5h1.5V6a2.5 2.5 0 0 1 5 0v1.5H16V6a4 4 0 0 0-4-4"/><path fill="url(#SVGWGGuSc4j)" d="M20 10.25A3.25 3.25 0 0 0 16.75 7h-9.5A3.25 3.25 0 0 0 4 10.25v7.5A3.25 3.25 0 0 0 7.25 21h9.5A3.25 3.25 0 0 0 20 17.75z"/><path fill="url(#SVGM8vxsbDr)" d="M12 15.5a1.5 1.5 0 1 0 0-3a1.5 1.5 0 0 0 0 3"/><defs><linearGradient id="SVGZFAsATbD" x1="9.714" x2="15.835" y1=".949" y2="11.057" gradientUnits="userSpaceOnUse"><stop stop-color="#ffc205"/><stop offset="1" stop-color="#fb5937"/></linearGradient><linearGradient id="SVGWGGuSc4j" x1="21.143" x2="6.542" y1="21.875" y2="8.278" gradientUnits="userSpaceOnUse"><stop stop-color="#ff6f47"/><stop offset="1" stop-color="#ffcd0f"/></linearGradient><radialGradient id="SVGM8vxsbDr" cx="0" cy="0" r="1" gradientTransform="rotate(254.055 12.22 2.941)scale(5.46008 7.57586)" gradientUnits="userSpaceOnUse"><stop stop-color="#944600"/><stop offset="1" stop-color="#cd8e02"/></radialGradient></defs></g></svg>How to use the Lock Closed 24 icon
React
import { Icon } from "@iconify/react";
<Icon icon="fluent-color:lock-closed-24" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="fluent-color:lock-closed-24" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="fluent-color:lock-closed-24" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[fluent-color--lock-closed-24]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/fluent-color -->
<div class="i-fluent-color:lock-closed-24"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="fluent-color:lock-closed-24"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/fluent-color/lock-closed-24.svg" alt="Lock Closed 24 icon" width="24" height="24">Related icons in Fluent UI System Color Icons
Lock Closed 24 icon FAQ
Is the Lock Closed 24 icon free for commercial use?
Yes. Fluent UI System Color Icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Lock Closed 24 icon in React?
Install @iconify/react and render <Icon icon="fluent-color:lock-closed-24" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Lock Closed 24 icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/fluent-color/lock-closed-24.svg" alt="Lock Closed 24 icon">, or paste the SVG code inline to style it with CSS.