Cart icon
topcoat:cart
The Cart icon (topcoat:cart) is a free SVG icon from the TopCoat Icons set by TopCoat. It is drawn on a 42 × 42 grid. TopCoat Icons are released under the Apache 2.0 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
- TopCoat Icons
- Author
- TopCoat
- License
- Apache-2.0
- Size
- 42 × 42
SVG code
<svg xmlns="http://www.w3.org/2000/svg" width="42" height="42" viewBox="0 0 42 42"><path fill="currentColor" d="M40.5 12.5c0-1.48-.311-2-1.872-2H11.726l-.801-5c-.109-1.46-.85-2-2.421-2H2.501C1.02 3.5.5 3.99.5 5.5v1c0 1.551.52 2 2.001 2h3.722l3.282 19c.35 1.04 1.311 1.95 3.001 2h22.012c1.75 0 2.57-.359 3.002-2zm-7.023 12H13.696l-1.471-9h22.951zm-19.97 12a4 4 0 0 0 4.002 4a4 4 0 1 0 0-8a4 4 0 0 0-4.002 4m13.007 0a4 4 0 0 0 4.002 4a4 4 0 1 0 0-8a4 4 0 0 0-4.002 4"/></svg>How to use the Cart icon
React
import { Icon } from "@iconify/react";
<Icon icon="topcoat:cart" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="topcoat:cart" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="topcoat:cart" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[topcoat--cart]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/topcoat -->
<div class="i-topcoat:cart"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="topcoat:cart"></iconify-icon>HTML image
<img src="https://icons.sys.karaztherapy.ma/api/public/svg/topcoat/cart.svg" alt="Cart icon" width="24" height="24">Cart icon in other icon sets
Cart icon FAQ
Is the Cart icon free for commercial use?
Yes. TopCoat Icons are released under the Apache 2.0 license, which allows use in personal and commercial projects.
How do I use the Cart icon in React?
Install @iconify/react and render <Icon icon="topcoat:cart" />, or use “Copy code” on this page to get a standalone React component.
How do I add the Cart icon to a web page?
Link the SVG file in an image tag: <img src="https://icons.sys.karaztherapy.ma/api/public/svg/topcoat/cart.svg" alt="Cart icon">, or paste the SVG code inline to style it with CSS.