File icon
andrsrxn:file
The File icon (andrsrxn:file) is a free SVG icon from the andrsrxn/icons set by Andrés Raxón. It is drawn on a 24 × 24 grid. andrsrxn/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
- andrsrxn/icons
- Author
- Andrés Raxón
- License
- MIT
- Size
- 24 × 24
- Category
- Documents
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none"><path fill="currentColor" d="M7.8 22.23c-1.9 0-2.84 0-3.42-.58c-.59-.59-.59-1.53-.59-3.42V5.73c0-1.86 0-2.8.58-3.38s1.51-.6 3.38-.62L10 1.71c1.3-.01 1.97-.02 2.45.27q.42.26.68.67c.3.48.3 1.14.3 2.45c0 1.3 0 1.96.28 2.43q.26.42.67.67c.48.3 1.13.3 2.43.3s1.96 0 2.44.29q.41.26.67.66c.29.48.29 1.14.29 2.44v6.34c0 1.89 0 2.83-.59 3.42c-.58.58-1.53.58-3.41.58z" opacity=".2"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9.8 22.23c-2.84 0-4.25 0-5.13-.88c-.88-.87-.88-2.29-.88-5.12V7.78c0-2.83 0-4.25.88-5.13s2.3-.87 5.12-.87h1.94c1.22 0 1.83 0 2.38.22c.55.23.99.66 1.85 1.53l1.25 1.24l1.19 1.16c.89.87 1.34 1.3 1.57 1.86c.24.56.24 1.19.24 2.43v6.01c0 2.83 0 4.25-.88 5.12s-2.3.88-5.12.88z"/><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M13.22 2.3v2.46c0 1.89 0 2.83.58 3.42c.59.58 1.53.58 3.42.58h2.48"/></g></svg>How to use the File icon
React
import { Icon } from "@iconify/react";
<Icon icon="andrsrxn:file" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="andrsrxn:file" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="andrsrxn:file" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[andrsrxn--file]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/andrsrxn -->
<div class="i-andrsrxn:file"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="andrsrxn:file"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/andrsrxn/file.svg" alt="File icon" width="24" height="24">Related icons in andrsrxn/icons
File icon in other icon sets
File icon FAQ
Is the File icon free for commercial use?
Yes. andrsrxn/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="andrsrxn: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/andrsrxn/file.svg" alt="File icon">, or paste the SVG code inline to style it with CSS.