Hack icon
file-icons:hack
The Hack icon (file-icons:hack) is a free SVG icon from the File Icons set by John Gardner. It is drawn on a 350 × 512 grid. File Icons are released under the ISC 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
- File Icons
- Author
- John Gardner
- License
- ISC
- Size
- 350 × 512
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="350" height="512" viewBox="0 0 350 512"><path fill="currentColor" d="M0 327.618V164.133L165.067 0v161.756zM178.975 166.99v161.58l160.487-161.258zm-13.908 166.099V180.382L13.093 333.09zM0 348.249V511.26l163.126-163.01zm178.975-1.052V512l170.936-171.002v-165.56z"/></svg>How to use the Hack icon
React
import { Icon } from "@iconify/react";
<Icon icon="file-icons:hack" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="file-icons:hack" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="file-icons:hack" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[file-icons--hack]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/file-icons -->
<div class="i-file-icons:hack"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="file-icons:hack"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/file-icons/hack.svg" alt="Hack icon" width="24" height="24">Hack icon in other icon sets
Hack icon FAQ
Is the Hack icon free for commercial use?
Yes. File Icons are released under the ISC license, which allows use in personal and commercial projects.
How do I use the Hack icon in React?
Install @iconify/react and render <Icon icon="file-icons:hack" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Hack icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/file-icons/hack.svg" alt="Hack icon">, or paste the SVG code inline to style it with CSS.