ICONYZ
English
Hard Drive icon from Boxicons

Hard Drive icon

boxicons:hard-drive

The Hard Drive icon (boxicons:hard-drive) is a free SVG icon from the Boxicons set. It is drawn on a 24 × 24 grid. Boxicons 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
Boxicons
Author
Boxicons
License
MIT
Size
24 × 24
Tags
harddrive
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M19.98 2.82A.996.996 0 0 0 19 2H5c-.48 0-.9.35-.98.82l-2 11c-.01.06-.02.12-.02.18v6c0 .55.45 1 1 1h18c.55 0 1-.45 1-1v-6c0-.06 0-.12-.02-.18zM5.83 4h12.33l1.64 9H4.2l1.64-9ZM4 19v-4h16v4z"/><path fill="currentColor" d="M17 16h2v2h-2zm-3 0h2v2h-2z"/></svg>

How to use the Hard Drive icon

React

import { Icon } from "@iconify/react";

<Icon icon="boxicons:hard-drive" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="boxicons:hard-drive" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="boxicons:hard-drive" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[boxicons--hard-drive]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/boxicons -->
<div class="i-boxicons:hard-drive"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="boxicons:hard-drive"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/boxicons/hard-drive.svg" alt="Hard Drive icon" width="24" height="24">

Related icons in Boxicons

Hard Drive icon in other icon sets

Hard Drive icon FAQ

Is the Hard Drive icon free for commercial use?

Yes. Boxicons are released under the MIT license, which allows use in personal and commercial projects.

How do I use the Hard Drive icon in React?

Install @iconify/react and render <Icon icon="boxicons:hard-drive" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Hard Drive icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/boxicons/hard-drive.svg" alt="Hard Drive icon">, or paste the SVG code inline to style it with CSS.

Browse all Boxicons →