gentleface

Gentleface › Shopping › shopping-cart

shopping-cart icon

Shopping cart: shopping cart, cart, shopping trolley. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed. Part of the free toolbar icon set.

Animated shopping-cart-add · line-round

An item drops into the basket and the cart dips on its wheels. It rolls back a little, then runs off the right edge with the load, and an empty cart rolls in from the left.

Download SVG

Native SVG animation, with no CSS or script. It loops by itself. Inline it to take the text color: in an <img> it draws black. To play it once on hover or click, run 0.2 s to 2.65 s. Examples and helper.

Code line-round

SVG
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M2.763 2.074C2.843 2.124 2.904 2.191 2.947 2.276L3.756 3.893C3.789 3.961 3.806 4.035 3.803 4.111C3.822 4.108 3.842 4.106 3.862 4.106C4.002 4.035 4.151 4 4.309 4L13.691 4C13.852 4 14.004 4.037 14.147 4.11C14.312 4.195 14.444 4.316 14.542 4.474C14.639 4.632 14.689 4.804 14.691 4.99C14.693 5.151 14.657 5.303 14.585 5.447L13.085 8.447C13.001 8.617 12.878 8.751 12.717 8.851C12.556 8.95 12.38 9 12.191 9L6.309 9L6.809 10L12.5 10C12.641 10 12.759 10.048 12.856 10.144C12.952 10.241 13 10.359 13 10.5C13 10.641 12.952 10.759 12.856 10.856C12.759 10.952 12.641 11 12.5 11L6.5 11C6.404 11 6.317 10.975 6.237 10.926C6.157 10.876 6.096 10.809 6.053 10.724L5.143 8.905C5.112 8.842 5.096 8.772 5.096 8.702C5.023 8.628 4.963 8.543 4.915 8.447L3.415 5.447C3.343 5.303 3.307 5.151 3.309 4.99C3.311 4.83 3.348 4.679 3.421 4.539C3.204 4.626 2.957 4.532 2.852 4.323L2.191 3L1.5 3C1.359 3 1.241 2.952 1.144 2.856C1.048 2.759 1 2.641 1 2.5C1 2.359 1.048 2.241 1.144 2.144C1.241 2.048 1.359 2 1.5 2L2.5 2C2.596 2 2.683 2.025 2.763 2.074ZM12.191 8L13.691 5L4.309 5L5.809 8L12.191 8ZM7.707 12.293C7.902 12.488 8 12.724 8 13C8 13.276 7.902 13.512 7.707 13.707C7.512 13.902 7.276 14 7 14C6.724 14 6.488 13.902 6.293 13.707C6.098 13.512 6 13.276 6 13C6 12.724 6.098 12.488 6.293 12.293C6.488 12.098 6.724 12 7 12C7.276 12 7.512 12.098 7.707 12.293ZM11.293 12.293C11.488 12.098 11.724 12 12 12C12.276 12 12.512 12.098 12.707 12.293C12.902 12.488 13 12.724 13 13C13 13.276 12.902 13.512 12.707 13.707C12.512 13.902 12.276 14 12 14C11.724 14 11.488 13.902 11.293 13.707C11.098 13.512 11 13.276 11 13C11 12.724 11.098 12.488 11.293 12.293Z"/></svg>
React
// Gentleface "shopping-cart" (line-round), MIT. https://gentleface.com/icons/shopping-cart
import type { SVGProps } from 'react';

export function ShoppingCartIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M2.763 2.074C2.843 2.124 2.904 2.191 2.947 2.276L3.756 3.893C3.789 3.961 3.806 4.035 3.803 4.111C3.822 4.108 3.842 4.106 3.862 4.106C4.002 4.035 4.151 4 4.309 4L13.691 4C13.852 4 14.004 4.037 14.147 4.11C14.312 4.195 14.444 4.316 14.542 4.474C14.639 4.632 14.689 4.804 14.691 4.99C14.693 5.151 14.657 5.303 14.585 5.447L13.085 8.447C13.001 8.617 12.878 8.751 12.717 8.851C12.556 8.95 12.38 9 12.191 9L6.309 9L6.809 10L12.5 10C12.641 10 12.759 10.048 12.856 10.144C12.952 10.241 13 10.359 13 10.5C13 10.641 12.952 10.759 12.856 10.856C12.759 10.952 12.641 11 12.5 11L6.5 11C6.404 11 6.317 10.975 6.237 10.926C6.157 10.876 6.096 10.809 6.053 10.724L5.143 8.905C5.112 8.842 5.096 8.772 5.096 8.702C5.023 8.628 4.963 8.543 4.915 8.447L3.415 5.447C3.343 5.303 3.307 5.151 3.309 4.99C3.311 4.83 3.348 4.679 3.421 4.539C3.204 4.626 2.957 4.532 2.852 4.323L2.191 3L1.5 3C1.359 3 1.241 2.952 1.144 2.856C1.048 2.759 1 2.641 1 2.5C1 2.359 1.048 2.241 1.144 2.144C1.241 2.048 1.359 2 1.5 2L2.5 2C2.596 2 2.683 2.025 2.763 2.074ZM12.191 8L13.691 5L4.309 5L5.809 8L12.191 8ZM7.707 12.293C7.902 12.488 8 12.724 8 13C8 13.276 7.902 13.512 7.707 13.707C7.512 13.902 7.276 14 7 14C6.724 14 6.488 13.902 6.293 13.707C6.098 13.512 6 13.276 6 13C6 12.724 6.098 12.488 6.293 12.293C6.488 12.098 6.724 12 7 12C7.276 12 7.512 12.098 7.707 12.293ZM11.293 12.293C11.488 12.098 11.724 12 12 12C12.276 12 12.512 12.098 12.707 12.293C12.902 12.488 13 12.724 13 13C13 13.276 12.902 13.512 12.707 13.707C12.512 13.902 12.276 14 12 14C11.724 14 11.488 13.902 11.293 13.707C11.098 13.512 11 13.276 11 13C11 12.724 11.098 12.488 11.293 12.293Z" />
    </svg>
  );
}
Vue
Vue: see /icons/shopping-cart.md
Svelte
Svelte: see /icons/shopping-cart.md
HTML img
HTML img: see /icons/shopping-cart.md
CSS
CSS: see /icons/shopping-cart.md
Data URL
Data URL: see /icons/shopping-cart.md
Sprite
Sprite: see /icons/shopping-cart.md
SwiftUI
SwiftUI: see /icons/shopping-cart.md
Compose
Compose: see /icons/shopping-cart.md
Android XML
Android XML: see /icons/shopping-cart.md
Flutter
Flutter: see /icons/shopping-cart.md

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.

With npm: import { ShoppingCartIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
shopping cart, cart, shopping trolley
Alternatives
Don’t confuse with
  • trolley: a hand truck for moving goods, not a shopping cart
Also fits
  • shopping bag: the cart convention: pick one per product
  • shopping: the cart convention
  • shopping basket: the default cart convention
Not for
  • hand truck (use trolley): a UK shopping 'trolley' is shopping-cart
Tags
cart, shop, shopping, buy, checkout, basket, ecommerce, store
Category
Shopping
Component name
ShoppingCartIcon
History
  • added
  • released in 0.1.0
  • 20 px drawn, 24 px drawn
Since
version 0.1.0

Family 10

More shopping icons

For agents

Metadata: /icons/shopping-cart.json · Markdown: /icons/shopping-cart.md · SVG: https://gentleface.com/svg/{style}/16/shopping-cart.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/shopping-cart.png