Code Blocks icon
material-symbols-light:code-blocks
The Code Blocks icon (material-symbols-light:code-blocks) is a free SVG icon from the Material Symbols Light set by Google. It is drawn on a 24 × 24 grid. Material Symbols Light icons are released under the Apache 2.0 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
- Material Symbols Light
- Author
- License
- Apache-2.0
- Size
- 24 × 24
- Category
- Actions
- Tags
- codeblocks, block
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="m9.6 14.908l.708-.714L8.114 12l2.174-2.175l-.707-.713L6.692 12zm4.8 0L17.308 12L14.4 9.092l-.708.714L15.887 12l-2.195 2.194zM5.616 20q-.691 0-1.153-.462T4 18.384V5.616q0-.691.463-1.153T5.616 4h12.769q.69 0 1.153.463T20 5.616v12.769q0 .69-.462 1.153T18.384 20z"/></svg>How to use the Code Blocks icon
React
import { Icon } from "@iconify/react";
<Icon icon="material-symbols-light:code-blocks" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="material-symbols-light:code-blocks" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="material-symbols-light:code-blocks" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[material-symbols-light--code-blocks]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/material-symbols-light -->
<div class="i-material-symbols-light:code-blocks"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="material-symbols-light:code-blocks"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/material-symbols-light/code-blocks.svg" alt="Code Blocks icon" width="24" height="24">Related icons in Material Symbols Light
Code Blocks icon in other icon sets
Code Blocks icon FAQ
Is the Code Blocks icon free for commercial use?
Yes. Material Symbols Light icons are released under the Apache 2.0 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="material-symbols-light: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/material-symbols-light/code-blocks.svg" alt="Code Blocks icon">, or paste the SVG code inline to style it with CSS.