Square icon
gravity-ui:square
The Square icon (gravity-ui:square) is a free SVG icon from the Gravity UI Icons set by YANDEX LLC. It is drawn on a 24 × 24 grid. Gravity UI Icons 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
- Gravity UI Icons
- Author
- YANDEX LLC
- License
- MIT
- Size
- 24 × 24
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="M11.5 3h-7A1.5 1.5 0 0 0 3 4.5v7A1.5 1.5 0 0 0 4.5 13h7a1.5 1.5 0 0 0 1.5-1.5v-7A1.5 1.5 0 0 0 11.5 3m-7-1.5a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3v-7a3 3 0 0 0-3-3z" clip-rule="evenodd"/></svg>How to use the Square icon
React
import { Icon } from "@iconify/react";
<Icon icon="gravity-ui:square" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="gravity-ui:square" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="gravity-ui:square" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[gravity-ui--square]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/gravity-ui -->
<div class="i-gravity-ui:square"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="gravity-ui:square"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/gravity-ui/square.svg" alt="Square icon" width="24" height="24">Related icons in Gravity UI Icons
square-article
square-bars
square-bars-vertical
square-brackets
square-brackets-bars-vertical
square-brackets-letter-a
square-chart-bar
square-chart-column
square-check
square-dashed
square-dashed-circle
square-dashed-letter-a
square-dashed-letter-t
square-dashed-text
square-dot
square-exclamation
square-fill
square-hashtag
square-letter-p
square-letter-t
square-line-horizontal
square-line-vertical
square-list-ul
square-minus
Square icon in other icon sets
Square icon FAQ
Is the Square icon free for commercial use?
Yes. Gravity UI Icons are released under the MIT 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="gravity-ui: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/gravity-ui/square.svg" alt="Square icon">, or paste the SVG code inline to style it with CSS.