The Heroicons shopping bag icon visually represents a bag used for carrying purchased items, commonly used in e-commerce UIs to indicate a shopping cart or the checkout process.
Common uses
- Add to cart button
- View shopping cart link
- Checkout process indicator
Use it in React
Install
npm i @heroicons/reactImport & render
import { ShoppingBagIcon } from '@heroicons/react/24/outline';
<ShoppingBagIcon className="size-6" />Styles
Heroicons ships this icon in 4 styles — each its own import:
24/outline
<ShoppingBagIcon className="size-6" />24/solid
<ShoppingBagIcon className="size-6" />20/solid
<ShoppingBagIcon className="size-6" />16/solid
<ShoppingBagIcon className="size-6" />Details
- Library
- Heroicons (324 icons)
- License
- MIT
- viewBox
0 0 24 24- Keywords
- shoppingbagcartecommercepurchasecheckout
FAQ
- What is the shopping bag icon used for?
- It's typically used to represent a shopping cart or the checkout process in e-commerce applications.
- How do I use the shopping bag icon in React?
- Import it using: `import { ShoppingBagIcon } from '@heroicons/react/24/outline'`. Then use it as a React component: `<ShoppingBagIcon className="h-6 w-6" />`.
- What is the license for Heroicons?
- Heroicons are provided under the MIT license, allowing for free use in both personal and commercial projects.
Related icons
The same idea in other libraries, and near matches in Heroicons.
Looking for something else? Search Heroicons and 4 more libraries by description →
The search behind these pages runs as a Claude Code skill. What skills are and how I ship them →