Shopping bag icon
New Added in v0.7.0
A free pencil-style shopping bag icon, drawn by code from 1 closed shape and 1 arc. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use shopping-bag
One package, four ways in. The icon inherits currentColor and is decorative unless you give it a title. Install it with npm i @matita/icons.
React
import { ShoppingBag } from '@matita/icons/react';
<ShoppingBag size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="shopping-bag" />JavaScript
import { ShoppingBag, toSvg } from '@matita/icons';
toSvg(ShoppingBag, { size: 24 }); // SVG stringSVG
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" overflow="visible" class="sketch-icon sketch-icon-shopping-bag" data-sketch="" aria-hidden="true"><path d="M5.15 7.97Q12.14 8.13 19.13 7.95Q20.07 14.24 20.15 20.6Q12.1 19.98 4.04 20.32Q5.09 14.19 5.15 7.97Q6.06 7.98 6.97 7.97" stroke-width="1.696"/><path d="M8.76 9.38C8.68 9.12 8.24 8.36 8.27 7.86C8.29 7.37 8.64 6.85 8.9 6.4C9.16 5.96 9.45 5.52 9.84 5.2C10.23 4.89 10.74 4.64 11.23 4.52C11.72 4.41 12.27 4.41 12.78 4.51C13.28 4.6 13.84 4.78 14.25 5.09C14.65 5.4 14.98 5.89 15.21 6.35C15.43 6.81 15.61 7.36 15.61 7.87C15.62 8.37 15.3 9.12 15.24 9.38" stroke-width="1.76"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { ShoppingBag } from '@matita/icons/react';
<ShoppingBag size={32} pencil />The file is icons/shopping-bag.svg in the package (pencil/shopping-bag.svg for the pencil variant). Matita 0.7.0.
02How it's drawn
The recipe for shopping-bag
Shopping bag is not stored as a drawing. It is a recipe of 1 closed shape and 1 arc on a 24 by 24 grid, and a small program draws it like a pencil would. The wobble comes from the name, so it always comes out the same.
Z 5 8 19 8 20 20.5 4 20.5;
A 12 8 3.64 165 375
shopping-bag as a number: 843047158
Shapes: L line, P polyline, Z closed shape, R rectangle, C circle, E ellipse, A arc, Q curve, B bezier curve, S smooth line, O dot. Separate shapes with ;. Edits stay on this page.
03Takes, sizes, pencil
Same icon, every way
Pass a seed for another take of the same recipe. The wobble is capped, so it still reads at 16 px.
Five seeds of shopping-bag. Seed 0 is the default.
shopping-bag from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/shopping-bag.svg.
True pixel sizes.