Skip to content
Cuelark UI

Hover the icon or press Play. Suggested motion: shake. Pick another to preview it and update the animated code:

BoxIcons · BiTrash

Trash icon

A free trash icon from BoxIcons, ready for React. Use it static or animated: both versions are below, copy-paste or one shadcn command away. Sized in em and colored by currentColor.

License
MIT license
Project
github.com
Install with shadcn
npx shadcn@latest add https://ui.cuelark.com/r/icons/boxicons/trash.json
components/icons/boxicons-trash.tsx
import * as React from "react";

/**
 * Trash from BoxIcons (https://github.com/atisawd/boxicons), MIT.
 * Via Cuelark UI: ui.cuelark.com/icons/boxicons/trash. Sized in em, colored by currentColor.
 */
export function BiTrashIcon(props: React.SVGProps<SVGSVGElement>) {
  return (
    <svg
      aria-hidden="true"
      viewBox="0 0 24 24"
      stroke="currentColor"
      fill="currentColor"
      strokeWidth="0"
      width="1em"
      height="1em"
      xmlns="http://www.w3.org/2000/svg"
      {...props}
    >
      <path
        d="M5 20a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8h2V6h-4V4a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v2H3v2h2zM9 4h6v2H9zM8 8h9v12H7V8z"
      />
      <path d="M9 10h2v8H9zm4 0h2v8h-2z" />
    </svg>
  );
}
With react-icons
import { BiTrash } from "react-icons/bi";

export function Example() {
  return <BiTrash className="size-5" />;
}
trash.svg
<svg
  viewBox="0 0 24 24"
  stroke="currentColor"
  fill="currentColor"
  stroke-width="0"
  width="1em"
  height="1em"
  xmlns="http://www.w3.org/2000/svg"
>
  <path
    d="M5 20a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8h2V6h-4V4a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v2H3v2h2zM9 4h6v2H9zM8 8h9v12H7V8z"
  />
  <path d="M9 10h2v8H9zm4 0h2v8h-2z" />
</svg>
Attribution
"Trash" icon from BoxIcons (https://github.com/atisawd/boxicons), licensed under MIT license.

Related icons: delete, bin, remove, garbage

Trash icon in other sets