ICONYZ
English
Cart icon from Boxicons

Cart icon

boxicons:cart

The Cart icon (boxicons:cart) is a free SVG icon from the Boxicons set. It is drawn on a 24 × 24 grid. Boxicons 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
Boxicons
Author
Boxicons
License
MIT
Size
24 × 24
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M21 6H7.05L5.94 2.68A1 1 0 0 0 4.99 2h-3v2h2.28l3.54 10.63A2 2 0 0 0 9.71 16h7.59a2 2 0 0 0 1.87-1.3l2.76-7.35c.11-.31.07-.65-.11-.92A1 1 0 0 0 21 6m-3.69 8H9.72l-2-6h11.84zM10 18a2 2 0 1 0 0 4a2 2 0 1 0 0-4m7 0a2 2 0 1 0 0 4a2 2 0 1 0 0-4"/></svg>

How to use the Cart icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

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

Related icons in Boxicons

Cart icon in other icon sets

Cart icon FAQ

Is the Cart icon free for commercial use?

Yes. Boxicons are released under the MIT 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="boxicons: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/boxicons/cart.svg" alt="Cart icon">, or paste the SVG code inline to style it with CSS.

Browse all Boxicons →