ICONYZ
English
Cart icon from Bootstrap Icons

Cart icon

bi:cart

The Cart icon (bi:cart) is a free SVG icon from the Bootstrap Icons set by The Bootstrap Authors. It is drawn on a 24 × 24 grid. Bootstrap Icons 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
Bootstrap Icons
Author
The Bootstrap Authors
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="M0 1.5A.5.5 0 0 1 .5 1H2a.5.5 0 0 1 .485.379L2.89 3H14.5a.5.5 0 0 1 .491.592l-1.5 8A.5.5 0 0 1 13 12H4a.5.5 0 0 1-.491-.408L2.01 3.607L1.61 2H.5a.5.5 0 0 1-.5-.5M3.102 4l1.313 7h8.17l1.313-7zM5 12a2 2 0 1 0 0 4a2 2 0 0 0 0-4m7 0a2 2 0 1 0 0 4a2 2 0 0 0 0-4m-7 1a1 1 0 1 1 0 2a1 1 0 0 1 0-2m7 0a1 1 0 1 1 0 2a1 1 0 0 1 0-2"/></svg>

How to use the Cart icon

React

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

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

Vue

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

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

Svelte

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

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

Tailwind CSS

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

UnoCSS

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

Web component

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

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

HTML image

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

Related icons in Bootstrap Icons

Cart icon in other icon sets

Cart icon FAQ

Is the Cart icon free for commercial use?

Yes. Bootstrap Icons 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="bi: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/bi/cart.svg" alt="Cart icon">, or paste the SVG code inline to style it with CSS.

Browse all Bootstrap Icons →