ICONYZ
English
Lock Outline icon from Basil

Lock Outline icon

basil:lock-outline

The Lock Outline icon (basil:lock-outline) is a free SVG icon from the Basil set by Craftwork. It is drawn on a 24 × 24 grid. Basil 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
Basil
Author
Craftwork
License
CC-BY-4.0
Size
24 × 24
Category
Status
Tags
lockoutline
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M10.5 16a1.5 1.5 0 1 1 3 0a1.5 1.5 0 0 1-3 0"/><path fill="currentColor" fill-rule="evenodd" d="m7.622 10.597l-.316-2.839a5 5 0 0 1 0-1.095l.023-.205a4.7 4.7 0 0 1 9.342 0l.023.205q.06.547 0 1.095l-.316 2.84l.687.054a2.36 2.36 0 0 1 2.142 1.972a20.9 20.9 0 0 1 0 6.752a2.36 2.36 0 0 1-2.142 1.972l-1.496.12c-2.376.19-4.762.19-7.138 0l-1.496-.12a2.36 2.36 0 0 1-2.142-1.972a20.9 20.9 0 0 1 0-6.752a2.36 2.36 0 0 1 2.142-1.972zM11.626 3.8a3.2 3.2 0 0 1 3.554 2.825l.023.205q.042.381 0 .764l-.321 2.89a45 45 0 0 0-5.764 0l-.32-2.89a3.5 3.5 0 0 1 0-.764l.022-.205A3.2 3.2 0 0 1 11.626 3.8m3.824 8.229a43.4 43.4 0 0 0-6.9 0l-1.495.12a.86.86 0 0 0-.782.719a19.4 19.4 0 0 0 0 6.266a.86.86 0 0 0 .782.72l1.496.12c2.296.183 4.602.183 6.899 0l1.496-.12a.86.86 0 0 0 .781-.72a19.4 19.4 0 0 0 0-6.266a.86.86 0 0 0-.781-.72z" clip-rule="evenodd"/></svg>

How to use the Lock Outline icon

React

import { Icon } from "@iconify/react";

<Icon icon="basil:lock-outline" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="basil:lock-outline" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="basil:lock-outline" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[basil--lock-outline]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/basil -->
<div class="i-basil:lock-outline"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="basil:lock-outline"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/basil/lock-outline.svg" alt="Lock Outline icon" width="24" height="24">

Related icons in Basil

Lock Outline icon in other icon sets

Lock Outline icon FAQ

Is the Lock Outline icon free for commercial use?

Yes. Basil 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 Outline icon in React?

Install @iconify/react and render <Icon icon="basil:lock-outline" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Lock Outline icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/basil/lock-outline.svg" alt="Lock Outline icon">, or paste the SVG code inline to style it with CSS.

Browse all Basil icons →