ICONYZ
English
Trash Solid icon from Basil

Trash Solid icon

basil:trash-solid

The Trash Solid icon (basil:trash-solid) is a free SVG icon from the Basil set by Craftwork. It is drawn on a 24 × 24 grid. Basil icons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
Basil
Author
Craftwork
License
CC-BY-4.0
Size
24 × 24
Category
Interface
Tags
trashsolid
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M9.25 3a.75.75 0 0 1 .75-.75h4a.75.75 0 0 1 .75.75v.75H19a.75.75 0 0 1 0 1.5H5a.75.75 0 0 1 0-1.5h4.25z"/><path fill="currentColor" fill-rule="evenodd" d="M6.24 7.945a.5.5 0 0 1 .497-.445h10.526a.5.5 0 0 1 .497.445l.2 1.801a44.2 44.2 0 0 1 0 9.771l-.02.177a2.6 2.6 0 0 1-2.226 2.29a26.8 26.8 0 0 1-7.428 0a2.6 2.6 0 0 1-2.227-2.29l-.02-.177a44.2 44.2 0 0 1 0-9.77zm4.51 3.455a.75.75 0 0 0-1.5 0v7a.75.75 0 0 0 1.5 0zm4 0a.75.75 0 0 0-1.5 0v7a.75.75 0 0 0 1.5 0z" clip-rule="evenodd"/></svg>

How to use the Trash Solid icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="basil:trash-solid"></iconify-icon>

HTML image

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

Related icons in Basil

Trash Solid icon in other icon sets

Trash Solid icon FAQ

Is the Trash Solid icon free for commercial use?

Yes. Basil icons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author.

How do I use the Trash Solid icon in React?

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

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

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

Browse all Basil icons →