File icon
codex:file
The File icon (codex:file) is a free SVG icon from the CodeX Icons set by CodeX. It is drawn on a 24 × 24 grid. CodeX 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
- CodeX Icons
- Author
- CodeX
- License
- MIT
- Size
- 24 × 24
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.324 8.436L9.495 12.19c-.364.36-.564.852-.556 1.369a2 2 0 0 0 .6 1.387c.375.371.88.584 1.403.593a1.92 1.92 0 0 0 1.386-.55l3.828-3.754a3.75 3.75 0 0 0 1.112-2.738a4 4 0 0 0-1.198-2.775a4.1 4.1 0 0 0-2.808-1.185a3.85 3.85 0 0 0-2.77 1.098L6.661 9.39a5.63 5.63 0 0 0-1.667 4.107a6 6 0 0 0 1.798 4.161a6.15 6.15 0 0 0 4.21 1.778a5.77 5.77 0 0 0 4.157-1.646l3.829-3.756"/></svg>How to use the File icon
React
import { Icon } from "@iconify/react";
<Icon icon="codex:file" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="codex:file" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="codex:file" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[codex--file]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/codex -->
<div class="i-codex:file"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="codex:file"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/codex/file.svg" alt="File icon" width="24" height="24">File icon in other icon sets
File icon FAQ
Is the File icon free for commercial use?
Yes. CodeX Icons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the File icon in React?
Install @iconify/react and render <Icon icon="codex:file" />, or use “Copy code” on this page to get a standalone React component.
How do I add the File icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/codex/file.svg" alt="File icon">, or paste the SVG code inline to style it with CSS.