softicons.dev

hard drive icon

Free hard drive SVG icon, MIT licensed. Copy the SVG, install for React/Vue/Angular, or download. Part of the Softicons devices set.

Setup guide
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"
     fill="none" stroke="currentColor" stroke-width="2"
     stroke-linecap="round" stroke-linejoin="round">
  <line x1="22" y1="12" x2="2" y2="12"/>
  <path d="M5.5 5.1 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.5-6.9A2 2 0 0 0 16.8 4H7.2a2 2 0 0 0-1.7 1.1Z"/>
  <line x1="6" y1="16" x2="6" y2="16.01"/>
  <line x1="10" y1="16" x2="10" y2="16.01"/>
</svg>
<!-- via the CDN — no build step -->
<img src="https://cdn.softicons.dev/v1/icons/devices/hard-drive.svg"
     width="24" height="24" alt="hard drive icon">

<!-- …or paste the raw SVG from the SVG tab -->
import { HardDriveIcon } from "@softicons/react";

export default function Example() {
  return <HardDriveIcon size={24} strokeWidth={2} />;
}
<script setup>
import { HardDriveIcon } from "@softicons/vue";
</script>

<template>
  <HardDriveIcon :size="24" :stroke-width="2" />
</template>
import { HardDriveIconComponent } from "@softicons/angular";

@Component({
  standalone: true,
  imports: [HardDriveIconComponent],
  template: `<hard-drive-icon [size]="24" [strokeWidth]="2" />`,
})
export class DemoComponent {}