ICONYZ
English
Hard Drive icon from Keyline Icons

Hard Drive icon

keyline-icons:hard-drive

The Hard Drive icon (keyline-icons:hard-drive) is a free SVG icon from the Keyline Icons set. It is drawn on a 24 × 24 grid. Keyline 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
Keyline Icons
Author
Keyline Icons
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"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M5 11L19 11C20.6569 11 22 12.3431 22 14L22 17C22 18.6569 20.6569 20 19 20L5 20C3.3431 20 2 18.6569 2 17L2 14C2 12.3431 3.3431 11 5 11ZM2.4954 12.3486L4.1448 6.8506C4.6524 5.1587 6.2097 4 7.9761 4L16.0239 4C17.7903 4 19.3476 5.1587 19.8552 6.8506L21.5046 12.3486"/><path fill="currentColor" d="M19 15.5C19 16.3284 18.3284 17 17.5 17C16.6716 17 16 16.3284 16 15.5C16 14.6716 16.6716 14 17.5 14C18.3284 14 19 14.6716 19 15.5Z" stroke="none"/></g></svg>

How to use the Hard Drive icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="keyline-icons:hard-drive"></iconify-icon>

HTML image

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

Related icons in Keyline Icons

Hard Drive icon in other icon sets

Hard Drive icon FAQ

Is the Hard Drive icon free for commercial use?

Yes. Keyline Icons 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="keyline-icons: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/keyline-icons/hard-drive.svg" alt="Hard Drive icon">, or paste the SVG code inline to style it with CSS.

Browse all Keyline Icons →