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

pnpm add @behivetech/icons.cart
  • 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/cart at v0.1.0, snapshotted 2026-11-10

cart.tsx
1import { createIcon } from "@behivetech/icons.base";
2
3/** The cart icon: a stroke glyph on a 24 by 24 grid that inherits the text colour. */
4export const CartIcon = /*#__PURE__*/ createIcon(
5 "CartIcon",
6 <>
7 <circle cx="8" cy="21" r="1" />
8 <circle cx="19" cy="21" r="1" />
9 <path d="M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12" />
10 </>,
11);
12
13export default CartIcon;
index.ts
1export { CartIcon, default } from "./cart.js";
cart.example.tsx
1import { CartIcon } from "./cart.js";
2
3/** The icon at each size; it takes its colour from the surrounding text. */
4export const CartIconSizes = () => (
5 <>
6 <CartIcon size="sm" />
7 <CartIcon />
8 <CartIcon size="lg" />
9 <CartIcon size="xl" />
10 </>
11);
12
13/** Named with `titleAccess`, so assistive technology announces it. */
14export const NamedCartIcon = () => <CartIcon titleAccess="Cart" />;