ICONYZ
English
Lock Solid icon from Basil

Lock Solid icon

basil:lock-solid

The Lock Solid icon (basil:lock-solid) 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
locksolid
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" fill-rule="evenodd" d="m7.306 7.758l.343 3.088l-.694.055a2.11 2.11 0 0 0-1.915 1.764a20.6 20.6 0 0 0 0 6.67A2.11 2.11 0 0 0 6.955 21.1l1.496.12c2.362.188 4.736.188 7.098 0l1.496-.12a2.11 2.11 0 0 0 1.915-1.764a20.6 20.6 0 0 0 0-6.67a2.11 2.11 0 0 0-1.915-1.764l-.694-.055l.343-3.088q.06-.548 0-1.095l-.023-.205a4.7 4.7 0 0 0-9.342 0l-.023.205a5 5 0 0 0 0 1.095M12.374 3.8A3.2 3.2 0 0 0 8.82 6.624l-.023.205a3.5 3.5 0 0 0 0 .764l.349 3.139c1.9-.122 3.807-.122 5.708 0l.349-3.14a3.5 3.5 0 0 0 0-.763l-.023-.205a3.2 3.2 0 0 0-2.806-2.825M12 14.5a1.5 1.5 0 1 0 0 3a1.5 1.5 0 0 0 0-3" clip-rule="evenodd"/></svg>

How to use the Lock Solid icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

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

Related icons in Basil

Lock Solid icon in other icon sets

Lock Solid icon FAQ

Is the Lock Solid 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 Solid icon in React?

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

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

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

Browse all Basil icons →