Code File icon
icons8:code-file
The Code File icon (icons8:code-file) is a free SVG icon from the Icons8 Windows 10 Icons set by Icons8. It is drawn on a 32 × 32 grid. Icons8 Windows 10 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
- Icons8 Windows 10 Icons
- Author
- Icons8
- License
- MIT
- Size
- 32 × 32
- Tags
- codefile
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path fill="currentColor" d="M6 3v26h20V9.594l-.28-.313l-6-6l-.314-.28H6zm2 2h10v6h6v16H8zm12 1.438L22.563 9H20zM16 13l-2 12h2l2-12zm-3.78 2.375l-2.5 3l-.533.625l.532.625l2.5 3l1.56-1.25L11.813 19l1.968-2.375zm7.56 0l-1.56 1.25L20.187 19l-1.97 2.375l1.563 1.25l2.5-3l.532-.625l-.53-.625l-2.5-3z"/></svg>How to use the Code File icon
React
import { Icon } from "@iconify/react";
<Icon icon="icons8:code-file" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="icons8:code-file" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="icons8:code-file" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[icons8--code-file]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/icons8 -->
<div class="i-icons8:code-file"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="icons8:code-file"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/icons8/code-file.svg" alt="Code File icon" width="24" height="24">Code File icon in other icon sets
Code File icon FAQ
Is the Code File icon free for commercial use?
Yes. Icons8 Windows 10 Icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Code File icon in React?
Install @iconify/react and render <Icon icon="icons8:code-file" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Code File icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/icons8/code-file.svg" alt="Code File icon">, or paste the SVG code inline to style it with CSS.