Icône Lock 24
octicon:lock-24
L'icône Lock 24 (octicon:lock-24) est une icône SVG gratuite de la collection Octicons par GitHub. Elle est dessinée sur une grille de 24 × 24. Les Octicons sont publiées sous la licence MIT, qui autorise leur utilisation dans des projets personnels et commerciaux. Copiez-la en code SVG, JSX, Vue ou Svelte, ou téléchargez le fichier SVG.
Code SVG
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M6 9V7.25C6 3.845 8.503 1 12 1s6 2.845 6 6.25V9h.5a2.5 2.5 0 0 1 2.5 2.5v8a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 3 19.5v-8A2.5 2.5 0 0 1 5.5 9Zm-1.5 2.5v8a1 1 0 0 0 1 1h13a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-13a1 1 0 0 0-1 1m3-4.25V9h9V7.25c0-2.67-1.922-4.75-4.5-4.75S7.5 4.58 7.5 7.25"/></svg>Comment utiliser l'icône Lock 24
React
import { Icon } from "@iconify/react";
<Icon icon="octicon:lock-24" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="octicon:lock-24" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="octicon:lock-24" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[octicon--lock-24]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/octicon -->
<div class="i-octicon:lock-24"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="octicon:lock-24"></iconify-icon>Image HTML
<img src="https://iconyz.com/api/public/svg/octicon/lock-24.svg" alt="Icône Lock 24" width="24" height="24">Icônes similaires dans Octicons
L'icône Lock 24 dans d'autres collections
FAQ : Icône Lock 24
L'icône Lock 24 est-elle gratuite pour un usage commercial ?
Oui. Les Octicons sont publiées sous la licence MIT, qui autorise leur utilisation dans des projets personnels et commerciaux.
Comment utiliser l'icône Lock 24 dans React ?
Installez @iconify/react et affichez <Icon icon="octicon:lock-24" />, ou utilisez « Copier le code » sur cette page pour obtenir un composant React autonome.
Comment ajouter l'icône Lock 24 à une page web ?
Liez le fichier SVG dans une balise image : <img src="https://iconyz.com/api/public/svg/octicon/lock-24.svg" alt="Icône Lock 24">, ou collez le code SVG directement dans la page pour le styliser en CSS.