ICONYZ
English
Trash 20 Solid icon from HeroIcons

Trash 20 Solid icon

heroicons:trash-20-solid

The Trash 20 Solid icon (heroicons:trash-20-solid) is a free SVG icon from the HeroIcons set by Refactoring UI Inc. It is drawn on a 20 × 20 grid. HeroIcons 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
HeroIcons
Author
Refactoring UI Inc
License
MIT
Size
20 × 20
Tags
trashsolid
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill="currentColor" fill-rule="evenodd" d="M8.75 1A2.75 2.75 0 0 0 6 3.75v.443q-1.193.115-2.365.298a.75.75 0 1 0 .23 1.482l.149-.022l.841 10.518A2.75 2.75 0 0 0 7.596 19h4.807a2.75 2.75 0 0 0 2.742-2.53l.841-10.52l.149.023a.75.75 0 0 0 .23-1.482A41 41 0 0 0 14 4.193V3.75A2.75 2.75 0 0 0 11.25 1zM10 4q1.26 0 2.5.075V3.75c0-.69-.56-1.25-1.25-1.25h-2.5c-.69 0-1.25.56-1.25 1.25v.325Q8.74 4 10 4M8.58 7.72a.75.75 0 0 0-1.5.06l.3 7.5a.75.75 0 1 0 1.5-.06zm4.34.06a.75.75 0 1 0-1.5-.06l-.3 7.5a.75.75 0 1 0 1.5.06z" clip-rule="evenodd"/></svg>

How to use the Trash 20 Solid icon

React

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

<Icon icon="heroicons:trash-20-solid" width="24" />

Vue

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

<template>
  <Icon icon="heroicons:trash-20-solid" width="24" />
</template>

Svelte

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

<Icon icon="heroicons:trash-20-solid" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[heroicons--trash-20-solid]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/heroicons -->
<div class="i-heroicons:trash-20-solid"></div>

Web component

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

<iconify-icon icon="heroicons:trash-20-solid"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/heroicons/trash-20-solid.svg" alt="Trash 20 Solid icon" width="24" height="24">

Related icons in HeroIcons

Trash 20 Solid icon FAQ

Is the Trash 20 Solid icon free for commercial use?

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

How do I use the Trash 20 Solid icon in React?

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

How do I add the Trash 20 Solid icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/heroicons/trash-20-solid.svg" alt="Trash 20 Solid icon">, or paste the SVG code inline to style it with CSS.

Browse all HeroIcons →