Lock icon
nrk:lock
The Lock icon (nrk:lock) is a free SVG icon from the NRK Core Icons set by Norsk rikskringkasting. It is drawn on a 24 × 24 grid. NRK Core Icons 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
- NRK Core Icons
- Author
- Norsk rikskringkasting
- License
- CC-BY-4.0
- Size
- 24 × 24
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="currentColor"><path d="M12 3a4 4 0 0 0-4 4v1H6V7a6 6 0 1 1 12 0v1h-2V7a4 4 0 0 0-4-4m1 15v-4h-2v4z"/><path fill-rule="evenodd" d="M21 10v12H3V10zM5 12v8h14v-8z" clip-rule="evenodd"/></g></svg>How to use the Lock icon
React
import { Icon } from "@iconify/react";
<Icon icon="nrk:lock" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="nrk:lock" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="nrk:lock" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[nrk--lock]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/nrk -->
<div class="i-nrk:lock"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="nrk:lock"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/nrk/lock.svg" alt="Lock icon" width="24" height="24">Related icons in NRK Core Icons
Lock icon in other icon sets
Lock icon FAQ
Is the Lock icon free for commercial use?
Yes. NRK Core Icons 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 icon in React?
Install @iconify/react and render <Icon icon="nrk: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/nrk/lock.svg" alt="Lock icon">, or paste the SVG code inline to style it with CSS.