Icône Squares 2x2
heroicons:squares-2x2
L'icône Squares 2x2 (heroicons:squares-2x2) est une icône SVG gratuite de la collection HeroIcons par Refactoring UI Inc. Elle est dessinée sur une grille de 24 × 24. Les HeroIcons 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.
- Collection
- HeroIcons
- Auteur
- Refactoring UI Inc
- Licence
- MIT
- Taille
- 24 × 24
- Mots-clés
- squares2x2, square
Code SVG
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3.75 6A2.25 2.25 0 0 1 6 3.75h2.25A2.25 2.25 0 0 1 10.5 6v2.25a2.25 2.25 0 0 1-2.25 2.25H6a2.25 2.25 0 0 1-2.25-2.25zm0 9.75A2.25 2.25 0 0 1 6 13.5h2.25a2.25 2.25 0 0 1 2.25 2.25V18a2.25 2.25 0 0 1-2.25 2.25H6A2.25 2.25 0 0 1 3.75 18zM13.5 6a2.25 2.25 0 0 1 2.25-2.25H18A2.25 2.25 0 0 1 20.25 6v2.25A2.25 2.25 0 0 1 18 10.5h-2.25a2.25 2.25 0 0 1-2.25-2.25zm0 9.75a2.25 2.25 0 0 1 2.25-2.25H18a2.25 2.25 0 0 1 2.25 2.25V18A2.25 2.25 0 0 1 18 20.25h-2.25A2.25 2.25 0 0 1 13.5 18z"/></svg>Comment utiliser l'icône Squares 2x2
React
import { Icon } from "@iconify/react";
<Icon icon="heroicons:squares-2x2" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="heroicons:squares-2x2" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="heroicons:squares-2x2" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[heroicons--squares-2x2]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/heroicons -->
<div class="i-heroicons:squares-2x2"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="heroicons:squares-2x2"></iconify-icon>Image HTML
<img src="https://iconyz.com/api/public/svg/heroicons/squares-2x2.svg" alt="Icône Squares 2x2" width="24" height="24">Icônes similaires dans HeroIcons
L'icône Squares 2x2 dans d'autres collections
FAQ : Icône Squares 2x2
L'icône Squares 2x2 est-elle gratuite pour un usage commercial ?
Oui. Les HeroIcons sont publiées sous la licence MIT, qui autorise leur utilisation dans des projets personnels et commerciaux.
Comment utiliser l'icône Squares 2x2 dans React ?
Installez @iconify/react et affichez <Icon icon="heroicons:squares-2x2" />, ou utilisez « Copier le code » sur cette page pour obtenir un composant React autonome.
Comment ajouter l'icône Squares 2x2 à une page web ?
Liez le fichier SVG dans une balise image : <img src="https://iconyz.com/api/public/svg/heroicons/squares-2x2.svg" alt="Icône Squares 2x2">, ou collez le code SVG directement dans la page pour le styliser en CSS.