ICONYZ
English
Cart icon from Pepicons

Cart icon

pepicons:cart

The Cart icon (pepicons:cart) is a free SVG icon from the Pepicons set by CyCraft. It is drawn on a 20 × 20 grid. Pepicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
Pepicons
Author
CyCraft
License
CC-BY-4.0
Size
20 × 20
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><g fill="currentColor"><path fill-rule="evenodd" d="M16.513 6H7.487A2.5 2.5 0 0 0 5.05 9.057l.913 4A2.5 2.5 0 0 0 8.401 15H15.6a2.5 2.5 0 0 0 2.437-1.943l.913-4A2.5 2.5 0 0 0 16.513 6ZM7.376 8.013A.5.5 0 0 1 7.487 8h9.026a.5.5 0 0 1 .487.611l-.913 4A.5.5 0 0 1 15.6 13H8.4a.5.5 0 0 1-.487-.389l-.913-4a.5.5 0 0 1 .376-.598Z" clip-rule="evenodd"/><path d="M3.49 2H2a1 1 0 0 1 0-2h2.29a1 1 0 0 1 .975.78l2.71 12a1 1 0 1 1-1.95.44L3.49 2ZM10 17.25a1.75 1.75 0 1 1-3.5 0a1.75 1.75 0 0 1 3.5 0Zm7 0a1.75 1.75 0 1 1-3.5 0a1.75 1.75 0 0 1 3.5 0Z"/></g></svg>

How to use the Cart icon

React

import { Icon } from "@iconify/react";

<Icon icon="pepicons:cart" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="pepicons:cart" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="pepicons:cart" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[pepicons--cart]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/pepicons -->
<div class="i-pepicons:cart"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="pepicons:cart"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/pepicons/cart.svg" alt="Cart icon" width="24" height="24">

Related icons in Pepicons

Cart icon in other icon sets

Cart icon FAQ

Is the Cart icon free for commercial use?

Yes. Pepicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author.

How do I use the Cart icon in React?

Install @iconify/react and render <Icon icon="pepicons: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://iconyz.com/api/public/svg/pepicons/cart.svg" alt="Cart icon">, or paste the SVG code inline to style it with CSS.

Browse all Pepicons →