Shopping Cart Solid icon
heroicons:shopping-cart-solid
The Shopping Cart Solid icon (heroicons:shopping-cart-solid) is a free SVG icon from the HeroIcons set by Refactoring UI Inc. It is drawn on a 24 × 24 grid. HeroIcons are released under the MIT license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.
- Icon set
- HeroIcons
- Author
- Refactoring UI Inc
- License
- MIT
- Size
- 24 × 24
- Tags
- shoppingcart, cartsolid, shoppingcartsolid
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M2.25 2.25a.75.75 0 0 0 0 1.5h1.386c.17 0 .318.114.362.278l2.558 9.592a3.75 3.75 0 0 0-2.806 3.63c0 .414.336.75.75.75h15.75a.75.75 0 0 0 0-1.5H5.378A2.25 2.25 0 0 1 7.5 15h11.218a.75.75 0 0 0 .674-.421a60 60 0 0 0 2.96-7.228a.75.75 0 0 0-.525-.965A61 61 0 0 0 5.68 4.509l-.232-.867A1.875 1.875 0 0 0 3.636 2.25zm1.5 18a1.5 1.5 0 1 1 3 0a1.5 1.5 0 0 1-3 0m12.75 0a1.5 1.5 0 1 1 3 0a1.5 1.5 0 0 1-3 0"/></svg>How to use the Shopping Cart Solid icon
React
import { Icon } from "@iconify/react";
<Icon icon="heroicons:shopping-cart-solid" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="heroicons:shopping-cart-solid" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="heroicons:shopping-cart-solid" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[heroicons--shopping-cart-solid]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/heroicons -->
<div class="i-heroicons:shopping-cart-solid"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="heroicons:shopping-cart-solid"></iconify-icon>HTML image
<img src="https://iconyz.com/api/public/svg/heroicons/shopping-cart-solid.svg" alt="Shopping Cart Solid icon" width="24" height="24">Related icons in HeroIcons
Shopping Cart Solid icon in other icon sets
Shopping Cart Solid icon FAQ
Is the Shopping Cart Solid icon free for commercial use?
Yes. HeroIcons are released under the MIT license, which allows use in personal and commercial projects.
How do I use the Shopping Cart Solid icon in React?
Install @iconify/react and render <Icon icon="heroicons:shopping-cart-solid" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Shopping Cart Solid icon to a web page?
Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/heroicons/shopping-cart-solid.svg" alt="Shopping Cart Solid icon">, or paste the SVG code inline to style it with CSS.