softicons.dev

trash icon

Free trash SVG icon, MIT licensed. Copy the SVG, install for React/Vue/Angular, or download. Part of the Softicons files 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">
  <polyline points="3 6 5 6 21 6"/>
  <path d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/>
  <line x1="10" y1="11" x2="10" y2="17"/>
  <line x1="14" y1="11" x2="14" y2="17"/>
</svg>
<!-- via the CDN — no build step -->
<img src="https://cdn.softicons.dev/v1/icons/files/trash.svg"
     width="24" height="24" alt="trash icon">

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

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

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

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