File icon
mage:file
The File icon (mage:file) is a free SVG icon from the Mage Icons set by MageIcons. It is drawn on a 24 × 24 grid. Mage Icons are released under the Apache 2.0 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
- Mage Icons
- Author
- MageIcons
- License
- Apache-2.0
- Size
- 24 × 24
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="M14.186 2.753v3.596c0 .487.194.955.54 1.3a1.85 1.85 0 0 0 1.306.539h4.125"/><path d="M20.25 8.568v8.568a4.25 4.25 0 0 1-1.362 2.97a4.28 4.28 0 0 1-3.072 1.14h-7.59a4.3 4.3 0 0 1-3.1-1.124a4.26 4.26 0 0 1-1.376-2.986V6.862a4.25 4.25 0 0 1 1.362-2.97a4.28 4.28 0 0 1 3.072-1.14h5.714a3.5 3.5 0 0 1 2.361.905l2.96 2.722a2.97 2.97 0 0 1 1.031 2.189"/></g></svg>How to use the File icon
React
import { Icon } from "@iconify/react";
<Icon icon="mage:file" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="mage:file" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="mage:file" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[mage--file]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/mage -->
<div class="i-mage:file"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="mage:file"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/mage/file.svg" alt="File icon" width="24" height="24">Related icons in Mage Icons
File icon in other icon sets
File icon FAQ
Is the File icon free for commercial use?
Yes. Mage Icons are released under the Apache 2.0 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="mage: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/mage/file.svg" alt="File icon">, or paste the SVG code inline to style it with CSS.