ICONYZ
English
Trash Can icon from Akar Icons

Trash Can icon

akar-icons:trash-can

The Trash Can icon (akar-icons:trash-can) is a free SVG icon from the Akar Icons set by Arturo Wibawa. It is drawn on a 24 × 24 grid. Akar 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
Akar Icons
Author
Arturo Wibawa
License
MIT
Size
24 × 24
Tags
trashcan
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16l-1.58 14.22A2 2 0 0 1 16.432 22H7.568a2 2 0 0 1-1.988-1.78zm3.345-2.853A2 2 0 0 1 9.154 2h5.692a2 2 0 0 1 1.81 1.147L18 6H6zM2 6h20m-12 5v5m4-5v5"/></svg>

How to use the Trash Can icon

React

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

<Icon icon="akar-icons:trash-can" width="24" />

Vue

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

<template>
  <Icon icon="akar-icons:trash-can" width="24" />
</template>

Svelte

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

<Icon icon="akar-icons:trash-can" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[akar-icons--trash-can]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/akar-icons -->
<div class="i-akar-icons:trash-can"></div>

Web component

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

<iconify-icon icon="akar-icons:trash-can"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/akar-icons/trash-can.svg" alt="Trash Can icon" width="24" height="24">

Related icons in Akar Icons

Trash Can icon in other icon sets

Trash Can icon FAQ

Is the Trash Can icon free for commercial use?

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

How do I use the Trash Can icon in React?

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

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

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

Browse all Akar Icons →