4 Square icon
bi:4-square
The 4 Square icon (bi:4-square) is a free SVG icon from the Bootstrap Icons set by The Bootstrap Authors. It is drawn on a 24 × 24 grid. Bootstrap 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
- Bootstrap Icons
- Author
- The Bootstrap Authors
- License
- MIT
- Size
- 24 × 24
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="currentColor"><path d="M7.519 5.057q.33-.527.657-1.055h1.933v5.332h1.008v1.107H10.11V12H8.85v-1.559H4.978V9.322c.77-1.427 1.656-2.847 2.542-4.265ZM6.225 9.281v.053H8.85V5.063h-.065c-.867 1.33-1.787 2.806-2.56 4.218"/><path d="M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm15 0a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1z"/></g></svg>How to use the 4 Square icon
React
import { Icon } from "@iconify/react";
<Icon icon="bi:4-square" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="bi:4-square" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="bi:4-square" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[bi--4-square]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/bi -->
<div class="i-bi:4-square"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="bi:4-square"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/bi/4-square.svg" alt="4 Square icon" width="24" height="24">Related icons in Bootstrap Icons
4 Square icon in other icon sets
4 Square icon FAQ
Is the 4 Square icon free for commercial use?
Yes. Bootstrap Icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the 4 Square icon in React?
Install @iconify/react and render <Icon icon="bi:4-square" />, or use “Copy code” on this page to get a standalone React component.
How do I add the 4 Square icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/bi/4-square.svg" alt="4 Square icon">, or paste the SVG code inline to style it with CSS.