commerce

Shopping basket icon

Shopping basket is an original glyphfox icon from the commerce set, drawn on the 24 by 24 grid with 5 shapes. It is an open line drawing, so the solid style keeps the outline look. Tags: basket, groceries, buy, market.

Sizes, weights and styles

Every glyphfox icon renders along three axes. The stroke grows a little below 24 px so small icons keep their presence.

Sizes

16 px
20 px
24 px
32 px
48 px

Weights

weight 1
weight 1.5
weight 2
weight 2.5
weight 3

Styles

Outline
sharp corners

Copy the code

Pick a format. Each snippet uses the package entry point for that stack; the props work the same everywhere.

Code formats
App.jsx
import { ShoppingBasketIcon } from 'glyphfox/react';

<ShoppingBasketIcon />
App.vue
<script setup>
import { ShoppingBasketIcon } from 'glyphfox/vue';
</script>

<template>
  <ShoppingBasketIcon />
</template>
App.svelte
<script>
  import { ShoppingBasketIcon } from 'glyphfox/svelte';
</script>

<ShoppingBasketIcon />
app.component
import { GlyphFoxIcon, provideGlyphFox } from 'glyphfox-angular';

<gf-icon name="shopping-basket"></gf-icon>
index.html
<glyph-fox name="shopping-basket"></glyph-fox>
index.html
<script src="https://cdn.jsdelivr.net/npm/glyphfox@1"></script>

<glyph-fox name="shopping-basket"></glyph-fox>
index.html
<span class="gf-shopping-basket" aria-hidden="true"></span>
shopping-basket.svg
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="glyphfox glyphfox-shopping-basket" aria-hidden="true"><path d="M2 10h20"/><path d="M4 10l1.6 8.4A2 2 0 0 0 7.55 20h8.9a2 2 0 0 0 1.95-1.6L20 10"/><path d="M7 10a5 5 0 0 1 10 0"/><path d="M10 13.5v3"/><path d="M14 13.5v3"/></svg>
data URI
data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='glyphfox glyphfox-shopping-basket' aria-hidden='true'%3E%3Cpath d='M2 10h20'/%3E%3Cpath d='M4 10l1.6 8.4A2 2 0 0 0 7.55 20h8.9a2 2 0 0 0 1.95-1.6L20 10'/%3E%3Cpath d='M7 10a5 5 0 0 1 10 0'/%3E%3Cpath d='M10 13.5v3'/%3E%3Cpath d='M14 13.5v3'/%3E%3C/svg%3E
index.html
<!-- copy node_modules/glyphfox/dist/sprite.svg to your public folder -->
<svg width="24" height="24" aria-hidden="true">
  <use href="/sprite.svg#gf-shopping-basket"></use>
</svg>
index.html
<!-- main.js: import 'glyphfox/runtime'; -->
<i data-glyph="shopping-basket"></i>
icon.js
import { renderToString } from 'glyphfox/core';
import iconShoppingBasket from 'glyphfox/icons/shopping-basket';

const svg = renderToString(iconShoppingBasket, { size: 24 });

// or, with every icon registered by name:
// import { toSvg } from 'glyphfox';
// toSvg('shopping-basket', { size: 24 });

Details

Nameshopping-basket
React, Vue and Svelte componentShoppingBasketIcon
Icon data exporticonShoppingBasket
Categoriescommerce
Tagsbasket groceries buy market
StylesOutline
Shapes5
LicenseMIT

With a modifier badge

Add a badge in any corner with modifier or the name syntax. The icon is cut around the badge, so the result still passes the icon rules.

shopping-basket+check
shopping-basket+plus
shopping-basket+x
shopping-basket+alert

Use it in your stack

Guides with the install, the props and the pitfalls for each stack: