Code Square icon
griddy-icons:code-square
The Code Square icon (griddy-icons:code-square) is a free SVG icon from the Griddy Icons set by Zuzana Benova. It is drawn on a 24 × 24 grid. Griddy 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
- Griddy Icons
- Author
- Zuzana Benova
- License
- MIT
- Size
- 24 × 24
- Tags
- codesquare
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="M18.25 21H5.75A2.755 2.755 0 0 1 3 18.25V5.75A2.755 2.755 0 0 1 5.75 3h12.5A2.755 2.755 0 0 1 21 5.75v12.5A2.755 2.755 0 0 1 18.25 21M5.75 4.5c-.69 0-1.25.56-1.25 1.25v12.5c0 .69.56 1.25 1.25 1.25h12.5c.69 0 1.25-.56 1.25-1.25V5.75c0-.69-.56-1.25-1.25-1.25zm8.78 11.53l-1.06-1.06L16.44 12l-2.97-2.97l1.06-1.06l3.145 3.145c.485.485.485 1.28 0 1.77zm-8.205-3.145L9.47 16.03l1.06-1.06L7.56 12l2.97-2.97l-1.06-1.06l-3.145 3.145a1.26 1.26 0 0 0 0 1.77" clip-rule="evenodd"/></svg>How to use the Code Square icon
React
import { Icon } from "@iconify/react";
<Icon icon="griddy-icons:code-square" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="griddy-icons:code-square" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="griddy-icons:code-square" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[griddy-icons--code-square]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/griddy-icons -->
<div class="i-griddy-icons:code-square"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="griddy-icons:code-square"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/griddy-icons/code-square.svg" alt="Code Square icon" width="24" height="24">Related icons in Griddy Icons
Code Square icon in other icon sets
Code Square icon FAQ
Is the Code Square icon free for commercial use?
Yes. Griddy Icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Code Square icon in React?
Install @iconify/react and render <Icon icon="griddy-icons:code-square" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Code Square icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/griddy-icons/code-square.svg" alt="Code Square icon">, or paste the SVG code inline to style it with CSS.