ICONYZ
English
Code Blocks icon from theSVG

Code Blocks icon

thesvg:code-blocks

The Code Blocks icon (thesvg:code-blocks) is a free SVG icon from the theSVG set by thesvg.org. It is drawn on a 24 × 24 grid. theSVG 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
theSVG
Author
thesvg.org
License
MIT
Size
24 × 24
Tags
codeblocks, block
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M.011 0v8.406H8.61V0zm15.39 0v8.406H24V0zM8.972.658l.012 7.869l2.54 2.43l.007-5.564zm6.066 0l-2.555 4.735l.004 5.564l2.54-2.43zM.332 8.768l5.52 2.677l5.655-.006l-2.773-2.67zm14.944 0L12.53 11.49l5.655-.09l5.498-2.631zm-9.323 3.855L.318 15.232h8.405l2.748-2.722zm6.565-.113l2.747 2.722h8.402l-5.586-2.609zm-1.006.533l-2.54 2.43l-.011 7.873l2.555-4.74zm.964 0l-.008 5.564l2.559 4.74l-.011-7.874zM0 15.598V24h8.598v-8.402zm15.39 0V24h8.598v-8.402z"/></svg>

How to use the Code Blocks icon

React

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

<Icon icon="thesvg:code-blocks" width="24" />

Vue

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

<template>
  <Icon icon="thesvg:code-blocks" width="24" />
</template>

Svelte

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

<Icon icon="thesvg:code-blocks" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[thesvg--code-blocks]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/thesvg -->
<div class="i-thesvg:code-blocks"></div>

Web component

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

<iconify-icon icon="thesvg:code-blocks"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/thesvg/code-blocks.svg" alt="Code Blocks icon" width="24" height="24">

Related icons in theSVG

Code Blocks icon in other icon sets

Code Blocks icon FAQ

Is the Code Blocks icon free for commercial use?

Yes. theSVG icons are released under the MIT license, which allows use in personal and commercial projects.

How do I use the Code Blocks icon in React?

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

How do I add the Code Blocks icon to a web page?

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

Browse all theSVG icons →