ICONYZ
English
Square icon from Grommet Icons

Square icon

grommet-icons:square

The Square icon (grommet-icons:square) is a free SVG icon from the Grommet Icons set by Grommet. It is drawn on a 24 × 24 grid. Grommet Icons are released under the Apache 2.0 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
Grommet Icons
Author
Grommet
License
Apache-2.0
Size
24 × 24
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="M14.444 8.333H9.556c-.675 0-1.223.548-1.223 1.223v4.888c0 .675.548 1.223 1.223 1.223h4.888c.675 0 1.223-.548 1.223-1.223V9.556c0-.675-.548-1.223-1.223-1.223M18.111 22H5.89A3.89 3.89 0 0 1 2 18.111V5.89A3.89 3.89 0 0 1 5.889 2H18.11A3.89 3.89 0 0 1 22 5.889V18.11A3.89 3.89 0 0 1 18.111 22m0 2A5.89 5.89 0 0 0 24 18.111V5.89A5.89 5.89 0 0 0 18.111 0H5.89A5.89 5.89 0 0 0 0 5.889V18.11A5.89 5.89 0 0 0 5.889 24z"/></svg>

How to use the Square icon

React

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

<Icon icon="grommet-icons:square" width="24" />

Vue

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

<template>
  <Icon icon="grommet-icons:square" width="24" />
</template>

Svelte

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

<Icon icon="grommet-icons:square" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[grommet-icons--square]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/grommet-icons -->
<div class="i-grommet-icons:square"></div>

Web component

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

<iconify-icon icon="grommet-icons:square"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/grommet-icons/square.svg" alt="Square icon" width="24" height="24">

Square icon in other icon sets

Square icon FAQ

Is the Square icon free for commercial use?

Yes. Grommet Icons are released under the Apache 2.0 license, which allows use in personal and commercial projects.

How do I use the Square icon in React?

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

How do I add the Square icon to a web page?

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

Browse all Grommet Icons →