The trash icon: a 24 by 24 stroke glyph that takes its colour from the text around it.

pnpm add @behivetech/icons.trash
  • icon

This is the snapshot of v0.1.0, the current version, as recorded on 2026-11-10. The live page runs its examples →

registry/behivetech/icons/trash at v0.1.0, snapshotted 2026-11-10

trash.tsx
1import { createIcon } from "@behivetech/icons.base";
2
3/** The trash icon: a stroke glyph on a 24 by 24 grid that inherits the text colour. */
4export const TrashIcon = /*#__PURE__*/ createIcon(
5 "TrashIcon",
6 <>
7 <path d="M3 6h18" />
8 <path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2" />
9 <path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6" />
10 <path d="M10 11v6" />
11 <path d="M14 11v6" />
12 </>,
13);
14
15export default TrashIcon;
index.ts
1export { TrashIcon, default } from "./trash.js";
trash.example.tsx
1import { TrashIcon } from "./trash.js";
2
3/** The icon at each size; it takes its colour from the surrounding text. */
4export const TrashIconSizes = () => (
5 <>
6 <TrashIcon size="sm" />
7 <TrashIcon />
8 <TrashIcon size="lg" />
9 <TrashIcon size="xl" />
10 </>
11);
12
13/** Named with `titleAccess`, so assistive technology announces it. */
14export const NamedTrashIcon = () => <TrashIcon titleAccess="Trash" />;