ICONYZ
English
Squares 2x2 icon from HeroIcons

Squares 2x2 icon

heroicons:squares-2x2

The Squares 2x2 icon (heroicons:squares-2x2) is a free SVG icon from the HeroIcons set by Refactoring UI Inc. It is drawn on a 24 × 24 grid. HeroIcons are released under the MIT license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
HeroIcons
Author
Refactoring UI Inc
License
MIT
Size
24 × 24
Tags
squares2x2, square
Download SVG

SVG code

<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>

How to use the Squares 2x2 icon

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>

HTML image

<img src="https://iconyz.com/api/public/svg/heroicons/squares-2x2.svg" alt="Squares 2x2 icon" width="24" height="24">

Related icons in HeroIcons

Squares 2x2 icon in other icon sets

Squares 2x2 icon FAQ

Is the Squares 2x2 icon free for commercial use?

Yes. HeroIcons are released under the MIT license, which allows use in personal and commercial projects.

How do I use the Squares 2x2 icon in React?

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

How do I add the Squares 2x2 icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/heroicons/squares-2x2.svg" alt="Squares 2x2 icon">, or paste the SVG code inline to style it with CSS.

Browse all HeroIcons →