Shape Square icon
bx:shape-square
The Shape Square icon (bx:shape-square) is a free SVG icon from the BoxIcons v2 set by Boxicons. It is drawn on a 24 × 24 grid. BoxIcons v2 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
- BoxIcons v2
- Author
- Boxicons
- License
- MIT
- Size
- 24 × 24
- Tags
- shapesquare, bx shape square
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M21 6c0-1.654-1.346-3-3-3a2.99 2.99 0 0 0-2.815 2h-6.37A2.99 2.99 0 0 0 6 3C4.346 3 3 4.346 3 6c0 1.302.839 2.401 2 2.815v6.369A3 3 0 0 0 3 18c0 1.654 1.346 3 3 3a2.99 2.99 0 0 0 2.815-2h6.369a2.99 2.99 0 0 0 2.815 2c1.654 0 3-1.346 3-3a3 3 0 0 0-2-2.816V8.816A3 3 0 0 0 21 6m-3-1a1.001 1.001 0 1 1-1 1c0-.551.448-1 1-1m-2.815 12h-6.37A2.99 2.99 0 0 0 7 15.184V8.816A2.99 2.99 0 0 0 8.815 7h6.369A2.99 2.99 0 0 0 17 8.815v6.369A2.99 2.99 0 0 0 15.185 17M6 5a1.001 1.001 0 1 1-1 1c0-.551.448-1 1-1m0 14a1.001 1.001 0 0 1 0-2a1.001 1.001 0 0 1 0 2m12 0a1.001 1.001 0 0 1 0-2a1.001 1.001 0 0 1 0 2"/></svg>How to use the Shape Square icon
React
import { Icon } from "@iconify/react";
<Icon icon="bx:shape-square" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="bx:shape-square" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="bx:shape-square" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[bx--shape-square]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/bx -->
<div class="i-bx:shape-square"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="bx:shape-square"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/bx/shape-square.svg" alt="Shape Square icon" width="24" height="24">Related icons in BoxIcons v2
Shape Square icon in other icon sets
Shape Square icon FAQ
Is the Shape Square icon free for commercial use?
Yes. BoxIcons v2 icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Shape Square icon in React?
Install @iconify/react and render <Icon icon="bx:shape-square" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Shape Square icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/bx/shape-square.svg" alt="Shape Square icon">, or paste the SVG code inline to style it with CSS.