The Heroicons trash icon depicts a standard waste bin and is commonly used in user interfaces to represent actions related to deleting or discarding items.
Common uses
- Delete button
- Clear all items
- Empty trash bin
Use it in React
Install
npm i @heroicons/reactImport & render
import { TrashIcon } from '@heroicons/react/24/outline';
<TrashIcon className="size-6" />Styles
Heroicons ships this icon in 4 styles — each its own import:
24/outline
<TrashIcon className="size-6" />24/solid
<TrashIcon className="size-6" />20/solid
<TrashIcon className="size-6" />16/solid
<TrashIcon className="size-6" />Details
- Library
- Heroicons (324 icons)
- License
- MIT
- viewBox
0 0 24 24- Keywords
- trashdeletebingarbageremove
FAQ
- What is the trash icon used for?
- It's used to signify deletion or discarding of content. This could be for individual items or clearing a collection.
- How do I use the trash icon in React?
- You can import it from Heroicons and use it like this: `import { TrashIcon } from '@heroicons/react/24/outline'`. Then, render it as a component: `<TrashIcon className="h-6 w-6" />`.
- What is the license for Heroicons?
- Heroicons are distributed under the MIT license, which allows for free use in both open-source and commercial projects.
Related icons
The same idea in other libraries, and near matches in Heroicons.
Looking for something else? Search Heroicons and 4 more libraries by description →
The search behind these pages runs as a Claude Code skill. What skills are and how I ship them →