Hover the icon or press Play. Suggested motion: shake. Pick another to preview it and update the animated code:
Trash icon
A free trash icon from Heroicons, 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
npx shadcn@latest add https://ui.cuelark.com/r/icons/heroicons/trash.jsonimport * as React from "react";
/**
* Trash from Heroicons (https://github.com/tailwindlabs/heroicons), MIT.
* Via Cuelark UI: ui.cuelark.com/icons/heroicons/trash. Sized in em, colored by currentColor.
*/
export function HiTrashIcon(props: React.SVGProps<SVGSVGElement>) {
return (
<svg
aria-hidden="true"
viewBox="0 0 20 20"
aria-hidden="true"
stroke="currentColor"
fill="currentColor"
strokeWidth="0"
width="1em"
height="1em"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
fillRule="evenodd"
d="M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z"
clipRule="evenodd"
/>
</svg>
);
}import { HiTrash } from "react-icons/hi";
export function Example() {
return <HiTrash className="size-5" />;
}<svg
viewBox="0 0 20 20"
aria-hidden="true"
stroke="currentColor"
fill="currentColor"
stroke-width="0"
width="1em"
height="1em"
xmlns="http://www.w3.org/2000/svg"
>
<path
fill-rule="evenodd"
d="M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z"
clip-rule="evenodd"
/>
</svg>"Trash" icon from Heroicons (https://github.com/tailwindlabs/heroicons), licensed under MIT license.Related icons: delete, bin, remove, garbage
Trash icon in other sets
- Trash · Circum Icons
- Trash · Font Awesome 5
- Trash · Font Awesome 6
- Trash · Ionicons 5
- Trash · Typicons
- Trash · Github Octicons icons
- Trash · Feather
- Trash · Lucide
- Trash · Bootstrap Icons
- Trash · Grommet-Icons
- Trash · Heroicons 2
- Trash · Simple Line Icons
- Trash · BoxIcons
- Trash · css.gg
- Trash · VS Code Icons
- Trash · Tabler Icons
- Trash · Themify Icons
- Trash · Radix Icons