ICONYZ
English
Cart Alt icon from Boxicons

Cart Alt icon

boxicons:cart-alt

The Cart Alt icon (boxicons:cart-alt) 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
Tags
cartalt
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 4H6.17l-.18-1.15A1 1 0 0 0 5 2H2v2h2.14l1.87 12.15A1 1 0 0 0 7 17h12v-2H7.86l-.31-2H19c.45 0 .84-.3.96-.73l2-7A1 1 0 0 0 21 3.99Zm-2.75 7H7.24l-.77-5h13.2l-1.43 5ZM8 18a2 2 0 1 0 0 4a2 2 0 1 0 0-4m9 0a2 2 0 1 0 0 4a2 2 0 1 0 0-4"/></svg>

How to use the Cart Alt icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

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

Related icons in Boxicons

Cart Alt icon in other icon sets

Cart Alt icon FAQ

Is the Cart Alt 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 Alt icon in React?

Install @iconify/react and render <Icon icon="boxicons:cart-alt" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Cart Alt icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/boxicons/cart-alt.svg" alt="Cart Alt icon">, or paste the SVG code inline to style it with CSS.

Browse all Boxicons →