Code Block 20 icon
energy-icons:code-block-20
The Code Block 20 icon (energy-icons:code-block-20) is a free SVG icon from the Energy Icons set by Sam Passmore. It is drawn on a 20 × 20 grid. Energy 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
- Energy Icons
- Author
- Sam Passmore
- License
- MIT
- Size
- 20 × 20
- Tags
- codeblock
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="currentColor" d="M17.833 4.582a.75.75 0 0 0-.75-.75H2.917a.75.75 0 0 0-.75.75v10.834c0 .415.334.75.75.75h14.166c.416 0 .75-.335.75-.75zm1 10.834c0 .967-.782 1.75-1.75 1.75H2.917c-.968 0-1.75-.783-1.75-1.75V4.582c0-.967.782-1.75 1.75-1.75h14.166c.968 0 1.75.783 1.75 1.75z"/><path fill="currentColor" d="M7.147 7.146a.5.5 0 1 1 .707.707L5.707 10l2.147 2.146a.5.5 0 0 1-.707.707l-2.5-2.5a.5.5 0 0 1 0-.707zm5 0a.5.5 0 0 1 .707 0l2.5 2.5a.5.5 0 0 1 0 .707l-2.5 2.5a.5.5 0 0 1-.707-.707L14.293 10l-2.146-2.147a.5.5 0 0 1 0-.707"/></svg>How to use the Code Block 20 icon
React
import { Icon } from "@iconify/react";
<Icon icon="energy-icons:code-block-20" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="energy-icons:code-block-20" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="energy-icons:code-block-20" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[energy-icons--code-block-20]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/energy-icons -->
<div class="i-energy-icons:code-block-20"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="energy-icons:code-block-20"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/energy-icons/code-block-20.svg" alt="Code Block 20 icon" width="24" height="24">Related icons in Energy Icons
Code Block 20 icon in other icon sets
Code Block 20 icon FAQ
Is the Code Block 20 icon free for commercial use?
Yes. Energy Icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Code Block 20 icon in React?
Install @iconify/react and render <Icon icon="energy-icons:code-block-20" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Code Block 20 icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/energy-icons/code-block-20.svg" alt="Code Block 20 icon">, or paste the SVG code inline to style it with CSS.