Code icon
si-glyph:code
The Code icon (si-glyph:code) is a free SVG icon from the SmartIcons Glyph set by SmartIcons. It is drawn on a 17 × 24 grid. SmartIcons Glyph icons are released under the CC BY SA 4.0 license, which allows use in personal and commercial projects as long as you credit the author and share changes to the icons under the same license. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- SmartIcons Glyph
- Author
- SmartIcons
- License
- CC-BY-SA-4.0
- Size
- 17 × 24
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="17" height="24" viewBox="0 0 17 24"><path fill="currentColor" fill-rule="evenodd" d="M11.74 11.993a.7.7 0 0 0 .493-.195l3.479-3.316a.644.644 0 0 0 0-.939l-3.479-3.318a.72.72 0 0 0-.984 0a.643.643 0 0 0 0 .938l2.987 2.85l-2.987 2.848a.643.643 0 0 0 0 .938a.7.7 0 0 0 .491.194m-7.439-.11a.73.73 0 0 1-.497-.19L.287 8.425a.62.62 0 0 1 0-.923l3.517-3.268a.74.74 0 0 1 .995 0a.624.624 0 0 1 0 .924l-3.02 2.805l3.02 2.804a.626.626 0 0 1 0 .926a.74.74 0 0 1-.498.19m2.384 3.006a.67.67 0 0 0 .503-.51L9.934 1.885a.636.636 0 0 0-.488-.768a.66.66 0 0 0-.77.514L5.93 14.125a.636.636 0 0 0 .755.764"/></svg>How to use the Code icon
React
import { Icon } from "@iconify/react";
<Icon icon="si-glyph:code" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="si-glyph:code" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="si-glyph:code" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[si-glyph--code]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/si-glyph -->
<div class="i-si-glyph:code"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="si-glyph:code"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/si-glyph/code.svg" alt="Code icon" width="24" height="24">Code icon in other icon sets
Code icon FAQ
Is the Code icon free for commercial use?
Yes. SmartIcons Glyph icons are released under the CC BY SA 4.0 license, which allows use in personal and commercial projects as long as you credit the author and share changes to the icons under the same license.
How do I use the Code icon in React?
Install @iconify/react and render <Icon icon="si-glyph:code" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Code icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/si-glyph/code.svg" alt="Code icon">, or paste the SVG code inline to style it with CSS.