import { ShoppingCart } from "fmicon-react";
<ShoppingCart size={24} strokeWidth={1} />
Props
| Prop | Type | Default | Description |
|---|---|---|---|
size | number | string | 24 | Width and height in pixels |
variant | "linear" | "bold" | … | linear | Any of the 8 styles, plus glass-light for light backgrounds |
color | string | currentColor | Any CSS colour; inherits the text colour by default |
strokeWidth | number | 1.5 | Line weight for linear, twotone, broken and duotone |
...props | SVG attributes | – | className, aria-label, onClick and the rest |
More in Shop
What is the Shopping Cart Icon?
This shopping cart icon draws a wheeled trolley with a wire basket and a push handle. It is the most recognised button in online retail: it opens the cart, shows how many items are inside and sits on add to cart actions throughout product pages and listings.
Early US online stores borrowed the supermarket trolley, and it became shorthand for everything picked but not yet paid for. People now expect it in the top right corner of a shop. It differs from a basket, which suits British wording and small grocery orders, and from a bag, which often means fashion stores or completed orders. A cart with a plus means adding, not viewing.
When to Use the Shopping Cart Icon
- Online shop header: sits top right with a badge showing the number of items and opens a slide-out cart.
- Product listing grid: appears on a quick add button over each thumbnail so shoppers add items without opening the page.
- Mobile shop tab bar: gives the cart its own tab so it stays one tap away while browsing.
- Abandoned cart email: leads the reminder block that brings shoppers back to the items they left behind.
The Shopping Cart Icon in Linear Style
Linear icons are drawn with a single even stroke and no fills, so they stay light next to body text. You can change the stroke weight from thin to bold without the shape falling apart.
Best for: toolbars, tab bars, settings lists and anything that sits beside text.
The same icon also comes in outline, bold, bulk, twotone, broken, glass and duotone. See every icon in this look on the free linear icons page.
How to Use the Shopping Cart Icon
- Customise it. Pick a stroke weight, size and colour on the left. Thin (1 px) looks best at large sizes, Regular (1.5 px) is the default.
- Copy or download. Copy the SVG, or download SVG, PNG or WebP at any size from 16 to 512 px.
- Drop it into code. Choose React, React Native, Vue, Svelte, Angular or Flutter above and copy the ready-made
ShoppingCartIconcomponent. - Label it. If the icon is the only thing in a button, give it a name for screen readers:
aria-label="Open cart". If text sits next to it, usearia-hidden="true"instead.
Design Tips for the Shopping Cart Icon
- Animate the badge, not the whole cart, when an item is added; a small scale on the count confirms the action without distracting.
- Keep the wheels clearly separate from the basket at 16 px, otherwise the cart reads as a box or a chair.
- Write the button label as Cart, 2 items and put the count in an aria-live region so assistive tech announces each change.
Icons That Work Well with Shopping Cart
Browse all shop iconsShopping Cart Icon FAQ
It is usually the cart with a small plus, or the cart alone on a button labelled Add to cart. The plus helps when space is tight on product cards. On full-width buttons, the text does the work and the cart glyph simply adds recognition.
Yes, the trolley is one of the most widely recognised shopping symbols, even in markets where shops say basket or bag. Match it to your copy where you can, but people in most countries will read a cart in the header as their order in progress.
Yes. The shopping cart icon is one of 891 free, open-source icons you can use in personal and commercial work, including client projects and apps you sell. The packages are MIT licensed; keep the licence notice if you redistribute the icon files.
SVG, PNG and WebP, at any size from 16 to 512 pixels. You can also copy it as JSX or as a ready-made component for React, React Native, Vue, Svelte, Angular and Flutter, with your stroke weight and colour already applied.