# grocery-bag icon

Grocery bag. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/grocery-bag

- Category: Food & drink
- Use it for: groceries, grocery shopping, grocery, grocery delivery, supermarket
- Tags: groceries, grocery, bag, paper-bag, food, shopping, baguette, produce
- Component name: GroceryBagIcon
- Added: 2026-11-12

## Alternatives

- `shopping-bag`: shopping in general
- `shopping-basket`: a shopping basket in a store app

## Also fits

- shopping basket: groceries
- vegetables: groceries
- takeaway: groceries

## Files

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too.

- line-round: https://gentleface.com/svg/line-round/16/grocery-bag.svg · PNG https://gentleface.com/png/line-round/16/grocery-bag.png · https://gentleface.com/png/line-round/32/grocery-bag.png · https://gentleface.com/png/line-round/48/grocery-bag.png
- line-soft: https://gentleface.com/svg/line-soft/16/grocery-bag.svg · PNG https://gentleface.com/png/line-soft/16/grocery-bag.png · https://gentleface.com/png/line-soft/32/grocery-bag.png · https://gentleface.com/png/line-soft/48/grocery-bag.png
- line-sharp: https://gentleface.com/svg/line-sharp/16/grocery-bag.svg · PNG https://gentleface.com/png/line-sharp/16/grocery-bag.png · https://gentleface.com/png/line-sharp/32/grocery-bag.png · https://gentleface.com/png/line-sharp/48/grocery-bag.png
- solid-round: https://gentleface.com/svg/solid-round/16/grocery-bag.svg · PNG https://gentleface.com/png/solid-round/16/grocery-bag.png · https://gentleface.com/png/solid-round/32/grocery-bag.png · https://gentleface.com/png/solid-round/48/grocery-bag.png
- solid-soft: https://gentleface.com/svg/solid-soft/16/grocery-bag.svg · PNG https://gentleface.com/png/solid-soft/16/grocery-bag.png · https://gentleface.com/png/solid-soft/32/grocery-bag.png · https://gentleface.com/png/solid-soft/48/grocery-bag.png
- solid-sharp: https://gentleface.com/svg/solid-sharp/16/grocery-bag.svg · PNG https://gentleface.com/png/solid-sharp/16/grocery-bag.png · https://gentleface.com/png/solid-sharp/32/grocery-bag.png · https://gentleface.com/png/solid-sharp/48/grocery-bag.png

The SVG of every style: https://gentleface.com/icons/grocery-bag.json (`svg`).

## Code (line-round)

The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. For another style, take its SVG from the JSON and swap the path `d`.

### SVG

```svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M5.707 2.293C5.902 2.488 6 2.724 6 3L6 6C6 6.254 6.047 6.5 6.14 6.736C6.242 6.993 6.391 7.219 6.586 7.414C6.781 7.609 7.007 7.758 7.264 7.86C7.5 7.953 7.746 8 8 8C8.254 8 8.5 7.953 8.736 7.86C8.993 7.758 9.219 7.609 9.414 7.414C9.609 7.219 9.758 6.993 9.86 6.736C9.953 6.5 10 6.254 10 6L10 3C10 2.724 10.098 2.488 10.293 2.293C10.488 2.098 10.724 2 11 2L13 2C13.276 2 13.512 2.098 13.707 2.293C13.902 2.488 14 2.724 14 3L14 14C14 14.276 13.902 14.512 13.707 14.707C13.512 14.902 13.276 15 13 15L3 15C2.724 15 2.488 14.902 2.293 14.707C2.098 14.512 2 14.276 2 14L2 3C2 2.724 2.098 2.488 2.293 2.293C2.488 2.098 2.724 2 3 2L5 2C5.276 2 5.512 2.098 5.707 2.293ZM3 3L3 5L5 5L5 3L3 3ZM11 3L11 5L13 5L13 3L11 3ZM13 6L11 6C11 6.381 10.93 6.75 10.789 7.104C10.637 7.489 10.414 7.828 10.121 8.121C9.828 8.414 9.489 8.637 9.104 8.789C8.75 8.93 8.381 9 8 9C7.619 9 7.25 8.93 6.896 8.789C6.511 8.637 6.172 8.414 5.879 8.121C5.586 7.828 5.363 7.489 5.211 7.104C5.07 6.75 5 6.381 5 6L3 6L3 14L13 14L13 6Z"/></svg>
```

### React

```tsx
// Gentleface "grocery-bag" (line-round), MIT. https://gentleface.com/icons/grocery-bag
import type { SVGProps } from 'react';

export function GroceryBagIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M5.707 2.293C5.902 2.488 6 2.724 6 3L6 6C6 6.254 6.047 6.5 6.14 6.736C6.242 6.993 6.391 7.219 6.586 7.414C6.781 7.609 7.007 7.758 7.264 7.86C7.5 7.953 7.746 8 8 8C8.254 8 8.5 7.953 8.736 7.86C8.993 7.758 9.219 7.609 9.414 7.414C9.609 7.219 9.758 6.993 9.86 6.736C9.953 6.5 10 6.254 10 6L10 3C10 2.724 10.098 2.488 10.293 2.293C10.488 2.098 10.724 2 11 2L13 2C13.276 2 13.512 2.098 13.707 2.293C13.902 2.488 14 2.724 14 3L14 14C14 14.276 13.902 14.512 13.707 14.707C13.512 14.902 13.276 15 13 15L3 15C2.724 15 2.488 14.902 2.293 14.707C2.098 14.512 2 14.276 2 14L2 3C2 2.724 2.098 2.488 2.293 2.293C2.488 2.098 2.724 2 3 2L5 2C5.276 2 5.512 2.098 5.707 2.293ZM3 3L3 5L5 5L5 3L3 3ZM11 3L11 5L13 5L13 3L11 3ZM13 6L11 6C11 6.381 10.93 6.75 10.789 7.104C10.637 7.489 10.414 7.828 10.121 8.121C9.828 8.414 9.489 8.637 9.104 8.789C8.75 8.93 8.381 9 8 9C7.619 9 7.25 8.93 6.896 8.789C6.511 8.637 6.172 8.414 5.879 8.121C5.586 7.828 5.363 7.489 5.211 7.104C5.07 6.75 5 6.381 5 6L3 6L3 14L13 14L13 6Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "grocery-bag" (line-round), MIT. https://gentleface.com/icons/grocery-bag -->
<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
    <path d="M5.707 2.293C5.902 2.488 6 2.724 6 3L6 6C6 6.254 6.047 6.5 6.14 6.736C6.242 6.993 6.391 7.219 6.586 7.414C6.781 7.609 7.007 7.758 7.264 7.86C7.5 7.953 7.746 8 8 8C8.254 8 8.5 7.953 8.736 7.86C8.993 7.758 9.219 7.609 9.414 7.414C9.609 7.219 9.758 6.993 9.86 6.736C9.953 6.5 10 6.254 10 6L10 3C10 2.724 10.098 2.488 10.293 2.293C10.488 2.098 10.724 2 11 2L13 2C13.276 2 13.512 2.098 13.707 2.293C13.902 2.488 14 2.724 14 3L14 14C14 14.276 13.902 14.512 13.707 14.707C13.512 14.902 13.276 15 13 15L3 15C2.724 15 2.488 14.902 2.293 14.707C2.098 14.512 2 14.276 2 14L2 3C2 2.724 2.098 2.488 2.293 2.293C2.488 2.098 2.724 2 3 2L5 2C5.276 2 5.512 2.098 5.707 2.293ZM3 3L3 5L5 5L5 3L3 3ZM11 3L11 5L13 5L13 3L11 3ZM13 6L11 6C11 6.381 10.93 6.75 10.789 7.104C10.637 7.489 10.414 7.828 10.121 8.121C9.828 8.414 9.489 8.637 9.104 8.789C8.75 8.93 8.381 9 8 9C7.619 9 7.25 8.93 6.896 8.789C6.511 8.637 6.172 8.414 5.879 8.121C5.586 7.828 5.363 7.489 5.211 7.104C5.07 6.75 5 6.381 5 6L3 6L3 14L13 14L13 6Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "grocery-bag" (line-round), MIT. https://gentleface.com/icons/grocery-bag -->
<script>
  let props = $props();
</script>

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
  <path d="M5.707 2.293C5.902 2.488 6 2.724 6 3L6 6C6 6.254 6.047 6.5 6.14 6.736C6.242 6.993 6.391 7.219 6.586 7.414C6.781 7.609 7.007 7.758 7.264 7.86C7.5 7.953 7.746 8 8 8C8.254 8 8.5 7.953 8.736 7.86C8.993 7.758 9.219 7.609 9.414 7.414C9.609 7.219 9.758 6.993 9.86 6.736C9.953 6.5 10 6.254 10 6L10 3C10 2.724 10.098 2.488 10.293 2.293C10.488 2.098 10.724 2 11 2L13 2C13.276 2 13.512 2.098 13.707 2.293C13.902 2.488 14 2.724 14 3L14 14C14 14.276 13.902 14.512 13.707 14.707C13.512 14.902 13.276 15 13 15L3 15C2.724 15 2.488 14.902 2.293 14.707C2.098 14.512 2 14.276 2 14L2 3C2 2.724 2.098 2.488 2.293 2.293C2.488 2.098 2.724 2 3 2L5 2C5.276 2 5.512 2.098 5.707 2.293ZM3 3L3 5L5 5L5 3L3 3ZM11 3L11 5L13 5L13 3L11 3ZM13 6L11 6C11 6.381 10.93 6.75 10.789 7.104C10.637 7.489 10.414 7.828 10.121 8.121C9.828 8.414 9.489 8.637 9.104 8.789C8.75 8.93 8.381 9 8 9C7.619 9 7.25 8.93 6.896 8.789C6.511 8.637 6.172 8.414 5.879 8.121C5.586 7.828 5.363 7.489 5.211 7.104C5.07 6.75 5 6.381 5 6L3 6L3 14L13 14L13 6Z" />
</svg>
```

### HTML img

```html
<!-- Gentleface "grocery-bag" (line-round), MIT. https://gentleface.com/icons/grocery-bag. An <img> can't take currentColor: it draws black. Inline the SVG or use the CSS mask to color it. -->
<img src="https://gentleface.com/svg/line-round/16/grocery-bag.svg" width="16" height="16" alt="">
```

### CSS

```css
/* Gentleface "grocery-bag" (line-round), MIT. https://gentleface.com/icons/grocery-bag. Takes the text color. */
.icon-grocery-bag {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M5.707 2.293C5.902 2.488 6 2.724 6 3L6 6C6 6.254 6.047 6.5 6.14 6.736C6.242 6.993 6.391 7.219 6.586 7.414C6.781 7.609 7.007 7.758 7.264 7.86C7.5 7.953 7.746 8 8 8C8.254 8 8.5 7.953 8.736 7.86C8.993 7.758 9.219 7.609 9.414 7.414C9.609 7.219 9.758 6.993 9.86 6.736C9.953 6.5 10 6.254 10 6L10 3C10 2.724 10.098 2.488 10.293 2.293C10.488 2.098 10.724 2 11 2L13 2C13.276 2 13.512 2.098 13.707 2.293C13.902 2.488 14 2.724 14 3L14 14C14 14.276 13.902 14.512 13.707 14.707C13.512 14.902 13.276 15 13 15L3 15C2.724 15 2.488 14.902 2.293 14.707C2.098 14.512 2 14.276 2 14L2 3C2 2.724 2.098 2.488 2.293 2.293C2.488 2.098 2.724 2 3 2L5 2C5.276 2 5.512 2.098 5.707 2.293ZM3 3L3 5L5 5L5 3L3 3ZM11 3L11 5L13 5L13 3L11 3ZM13 6L11 6C11 6.381 10.93 6.75 10.789 7.104C10.637 7.489 10.414 7.828 10.121 8.121C9.828 8.414 9.489 8.637 9.104 8.789C8.75 8.93 8.381 9 8 9C7.619 9 7.25 8.93 6.896 8.789C6.511 8.637 6.172 8.414 5.879 8.121C5.586 7.828 5.363 7.489 5.211 7.104C5.07 6.75 5 6.381 5 6L3 6L3 14L13 14L13 6Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M5.707 2.293C5.902 2.488 6 2.724 6 3L6 6C6 6.254 6.047 6.5 6.14 6.736C6.242 6.993 6.391 7.219 6.586 7.414C6.781 7.609 7.007 7.758 7.264 7.86C7.5 7.953 7.746 8 8 8C8.254 8 8.5 7.953 8.736 7.86C8.993 7.758 9.219 7.609 9.414 7.414C9.609 7.219 9.758 6.993 9.86 6.736C9.953 6.5 10 6.254 10 6L10 3C10 2.724 10.098 2.488 10.293 2.293C10.488 2.098 10.724 2 11 2L13 2C13.276 2 13.512 2.098 13.707 2.293C13.902 2.488 14 2.724 14 3L14 14C14 14.276 13.902 14.512 13.707 14.707C13.512 14.902 13.276 15 13 15L3 15C2.724 15 2.488 14.902 2.293 14.707C2.098 14.512 2 14.276 2 14L2 3C2 2.724 2.098 2.488 2.293 2.293C2.488 2.098 2.724 2 3 2L5 2C5.276 2 5.512 2.098 5.707 2.293ZM3 3L3 5L5 5L5 3L3 3ZM11 3L11 5L13 5L13 3L11 3ZM13 6L11 6C11 6.381 10.93 6.75 10.789 7.104C10.637 7.489 10.414 7.828 10.121 8.121C9.828 8.414 9.489 8.637 9.104 8.789C8.75 8.93 8.381 9 8 9C7.619 9 7.25 8.93 6.896 8.789C6.511 8.637 6.172 8.414 5.879 8.121C5.586 7.828 5.363 7.489 5.211 7.104C5.07 6.75 5 6.381 5 6L3 6L3 14L13 14L13 6Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
```

### Data URL

```text
data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M5.707 2.293C5.902 2.488 6 2.724 6 3L6 6C6 6.254 6.047 6.5 6.14 6.736C6.242 6.993 6.391 7.219 6.586 7.414C6.781 7.609 7.007 7.758 7.264 7.86C7.5 7.953 7.746 8 8 8C8.254 8 8.5 7.953 8.736 7.86C8.993 7.758 9.219 7.609 9.414 7.414C9.609 7.219 9.758 6.993 9.86 6.736C9.953 6.5 10 6.254 10 6L10 3C10 2.724 10.098 2.488 10.293 2.293C10.488 2.098 10.724 2 11 2L13 2C13.276 2 13.512 2.098 13.707 2.293C13.902 2.488 14 2.724 14 3L14 14C14 14.276 13.902 14.512 13.707 14.707C13.512 14.902 13.276 15 13 15L3 15C2.724 15 2.488 14.902 2.293 14.707C2.098 14.512 2 14.276 2 14L2 3C2 2.724 2.098 2.488 2.293 2.293C2.488 2.098 2.724 2 3 2L5 2C5.276 2 5.512 2.098 5.707 2.293ZM3 3L3 5L5 5L5 3L3 3ZM11 3L11 5L13 5L13 3L11 3ZM13 6L11 6C11 6.381 10.93 6.75 10.789 7.104C10.637 7.489 10.414 7.828 10.121 8.121C9.828 8.414 9.489 8.637 9.104 8.789C8.75 8.93 8.381 9 8 9C7.619 9 7.25 8.93 6.896 8.789C6.511 8.637 6.172 8.414 5.879 8.121C5.586 7.828 5.363 7.489 5.211 7.104C5.07 6.75 5 6.381 5 6L3 6L3 14L13 14L13 6Z'/%3E%3C/svg%3E
```

### Sprite

```html
<!-- Gentleface "grocery-bag" (line-round), MIT. https://gentleface.com/icons/grocery-bag
     Every icon of this style in one file: https://gentleface.com/sprite/line-round.svg
     Serve it from your own origin: <use> does not load from another origin. -->
<svg width="16" height="16" aria-hidden="true"><use href="/sprite/line-round.svg#grocery-bag"/></svg>
```

### SwiftUI

```swift
// Gentleface "grocery-bag" (line-round), MIT. https://gentleface.com/icons/grocery-bag
import SwiftUI

struct GroceryBagIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 5.707, y: 2.293))
        p.addCurve(to: CGPoint(x: 6, y: 3), control1: CGPoint(x: 5.902, y: 2.488), control2: CGPoint(x: 6, y: 2.724))
        p.addLine(to: CGPoint(x: 6, y: 6))
        p.addCurve(to: CGPoint(x: 6.14, y: 6.736), control1: CGPoint(x: 6, y: 6.254), control2: CGPoint(x: 6.047, y: 6.5))
        p.addCurve(to: CGPoint(x: 6.586, y: 7.414), control1: CGPoint(x: 6.242, y: 6.993), control2: CGPoint(x: 6.391, y: 7.219))
        p.addCurve(to: CGPoint(x: 7.264, y: 7.86), control1: CGPoint(x: 6.781, y: 7.609), control2: CGPoint(x: 7.007, y: 7.758))
        p.addCurve(to: CGPoint(x: 8, y: 8), control1: CGPoint(x: 7.5, y: 7.953), control2: CGPoint(x: 7.746, y: 8))
        p.addCurve(to: CGPoint(x: 8.736, y: 7.86), control1: CGPoint(x: 8.254, y: 8), control2: CGPoint(x: 8.5, y: 7.953))
        p.addCurve(to: CGPoint(x: 9.414, y: 7.414), control1: CGPoint(x: 8.993, y: 7.758), control2: CGPoint(x: 9.219, y: 7.609))
        p.addCurve(to: CGPoint(x: 9.86, y: 6.736), control1: CGPoint(x: 9.609, y: 7.219), control2: CGPoint(x: 9.758, y: 6.993))
        p.addCurve(to: CGPoint(x: 10, y: 6), control1: CGPoint(x: 9.953, y: 6.5), control2: CGPoint(x: 10, y: 6.254))
        p.addLine(to: CGPoint(x: 10, y: 3))
        p.addCurve(to: CGPoint(x: 10.293, y: 2.293), control1: CGPoint(x: 10, y: 2.724), control2: CGPoint(x: 10.098, y: 2.488))
        p.addCurve(to: CGPoint(x: 11, y: 2), control1: CGPoint(x: 10.488, y: 2.098), control2: CGPoint(x: 10.724, y: 2))
        p.addLine(to: CGPoint(x: 13, y: 2))
        p.addCurve(to: CGPoint(x: 13.707, y: 2.293), control1: CGPoint(x: 13.276, y: 2), control2: CGPoint(x: 13.512, y: 2.098))
        p.addCurve(to: CGPoint(x: 14, y: 3), control1: CGPoint(x: 13.902, y: 2.488), control2: CGPoint(x: 14, y: 2.724))
        p.addLine(to: CGPoint(x: 14, y: 14))
        p.addCurve(to: CGPoint(x: 13.707, y: 14.707), control1: CGPoint(x: 14, y: 14.276), control2: CGPoint(x: 13.902, y: 14.512))
        p.addCurve(to: CGPoint(x: 13, y: 15), control1: CGPoint(x: 13.512, y: 14.902), control2: CGPoint(x: 13.276, y: 15))
        p.addLine(to: CGPoint(x: 3, y: 15))
        p.addCurve(to: CGPoint(x: 2.293, y: 14.707), control1: CGPoint(x: 2.724, y: 15), control2: CGPoint(x: 2.488, y: 14.902))
        p.addCurve(to: CGPoint(x: 2, y: 14), control1: CGPoint(x: 2.098, y: 14.512), control2: CGPoint(x: 2, y: 14.276))
        p.addLine(to: CGPoint(x: 2, y: 3))
        p.addCurve(to: CGPoint(x: 2.293, y: 2.293), control1: CGPoint(x: 2, y: 2.724), control2: CGPoint(x: 2.098, y: 2.488))
        p.addCurve(to: CGPoint(x: 3, y: 2), control1: CGPoint(x: 2.488, y: 2.098), control2: CGPoint(x: 2.724, y: 2))
        p.addLine(to: CGPoint(x: 5, y: 2))
        p.addCurve(to: CGPoint(x: 5.707, y: 2.293), control1: CGPoint(x: 5.276, y: 2), control2: CGPoint(x: 5.512, y: 2.098))
        p.closeSubpath()
        p.move(to: CGPoint(x: 3, y: 3))
        p.addLine(to: CGPoint(x: 3, y: 5))
        p.addLine(to: CGPoint(x: 5, y: 5))
        p.addLine(to: CGPoint(x: 5, y: 3))
        p.addLine(to: CGPoint(x: 3, y: 3))
        p.closeSubpath()
        p.move(to: CGPoint(x: 11, y: 3))
        p.addLine(to: CGPoint(x: 11, y: 5))
        p.addLine(to: CGPoint(x: 13, y: 5))
        p.addLine(to: CGPoint(x: 13, y: 3))
        p.addLine(to: CGPoint(x: 11, y: 3))
        p.closeSubpath()
        p.move(to: CGPoint(x: 13, y: 6))
        p.addLine(to: CGPoint(x: 11, y: 6))
        p.addCurve(to: CGPoint(x: 10.789, y: 7.104), control1: CGPoint(x: 11, y: 6.381), control2: CGPoint(x: 10.93, y: 6.75))
        p.addCurve(to: CGPoint(x: 10.121, y: 8.121), control1: CGPoint(x: 10.637, y: 7.489), control2: CGPoint(x: 10.414, y: 7.828))
        p.addCurve(to: CGPoint(x: 9.104, y: 8.789), control1: CGPoint(x: 9.828, y: 8.414), control2: CGPoint(x: 9.489, y: 8.637))
        p.addCurve(to: CGPoint(x: 8, y: 9), control1: CGPoint(x: 8.75, y: 8.93), control2: CGPoint(x: 8.381, y: 9))
        p.addCurve(to: CGPoint(x: 6.896, y: 8.789), control1: CGPoint(x: 7.619, y: 9), control2: CGPoint(x: 7.25, y: 8.93))
        p.addCurve(to: CGPoint(x: 5.879, y: 8.121), control1: CGPoint(x: 6.511, y: 8.637), control2: CGPoint(x: 6.172, y: 8.414))
        p.addCurve(to: CGPoint(x: 5.211, y: 7.104), control1: CGPoint(x: 5.586, y: 7.828), control2: CGPoint(x: 5.363, y: 7.489))
        p.addCurve(to: CGPoint(x: 5, y: 6), control1: CGPoint(x: 5.07, y: 6.75), control2: CGPoint(x: 5, y: 6.381))
        p.addLine(to: CGPoint(x: 3, y: 6))
        p.addLine(to: CGPoint(x: 3, y: 14))
        p.addLine(to: CGPoint(x: 13, y: 14))
        p.addLine(to: CGPoint(x: 13, y: 6))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

// GroceryBagIcon().frame(width: 16, height: 16) fills with the foreground style. Keep it on whole points to stay crisp.
```

### Compose

```kotlin
// Gentleface "grocery-bag" (line-round), MIT. https://gentleface.com/icons/grocery-bag
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.addPathNodes
import androidx.compose.ui.unit.dp

val GroceryBagIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "grocery-bag", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M5.707 2.293C5.902 2.488 6 2.724 6 3L6 6C6 6.254 6.047 6.5 6.14 6.736C6.242 6.993 6.391 7.219 6.586 7.414C6.781 7.609 7.007 7.758 7.264 7.86C7.5 7.953 7.746 8 8 8C8.254 8 8.5 7.953 8.736 7.86C8.993 7.758 9.219 7.609 9.414 7.414C9.609 7.219 9.758 6.993 9.86 6.736C9.953 6.5 10 6.254 10 6L10 3C10 2.724 10.098 2.488 10.293 2.293C10.488 2.098 10.724 2 11 2L13 2C13.276 2 13.512 2.098 13.707 2.293C13.902 2.488 14 2.724 14 3L14 14C14 14.276 13.902 14.512 13.707 14.707C13.512 14.902 13.276 15 13 15L3 15C2.724 15 2.488 14.902 2.293 14.707C2.098 14.512 2 14.276 2 14L2 3C2 2.724 2.098 2.488 2.293 2.293C2.488 2.098 2.724 2 3 2L5 2C5.276 2 5.512 2.098 5.707 2.293ZM3 3L3 5L5 5L5 3L3 3ZM11 3L11 5L13 5L13 3L11 3ZM13 6L11 6C11 6.381 10.93 6.75 10.789 7.104C10.637 7.489 10.414 7.828 10.121 8.121C9.828 8.414 9.489 8.637 9.104 8.789C8.75 8.93 8.381 9 8 9C7.619 9 7.25 8.93 6.896 8.789C6.511 8.637 6.172 8.414 5.879 8.121C5.586 7.828 5.363 7.489 5.211 7.104C5.07 6.75 5 6.381 5 6L3 6L3 14L13 14L13 6Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

// Icon(GroceryBagIcon, contentDescription = null) tints it with LocalContentColor.
```

### Android XML

```xml
<!-- res/drawable/ic_grocery_bag.xml · Gentleface "grocery-bag" (line-round), MIT. https://gentleface.com/icons/grocery-bag -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="16dp"
    android:height="16dp"
    android:viewportWidth="16"
    android:viewportHeight="16"
    android:tint="?attr/colorControlNormal">
  <path
      android:fillColor="@android:color/white"
      android:pathData="M5.707 2.293C5.902 2.488 6 2.724 6 3L6 6C6 6.254 6.047 6.5 6.14 6.736C6.242 6.993 6.391 7.219 6.586 7.414C6.781 7.609 7.007 7.758 7.264 7.86C7.5 7.953 7.746 8 8 8C8.254 8 8.5 7.953 8.736 7.86C8.993 7.758 9.219 7.609 9.414 7.414C9.609 7.219 9.758 6.993 9.86 6.736C9.953 6.5 10 6.254 10 6L10 3C10 2.724 10.098 2.488 10.293 2.293C10.488 2.098 10.724 2 11 2L13 2C13.276 2 13.512 2.098 13.707 2.293C13.902 2.488 14 2.724 14 3L14 14C14 14.276 13.902 14.512 13.707 14.707C13.512 14.902 13.276 15 13 15L3 15C2.724 15 2.488 14.902 2.293 14.707C2.098 14.512 2 14.276 2 14L2 3C2 2.724 2.098 2.488 2.293 2.293C2.488 2.098 2.724 2 3 2L5 2C5.276 2 5.512 2.098 5.707 2.293ZM3 3L3 5L5 5L5 3L3 3ZM11 3L11 5L13 5L13 3L11 3ZM13 6L11 6C11 6.381 10.93 6.75 10.789 7.104C10.637 7.489 10.414 7.828 10.121 8.121C9.828 8.414 9.489 8.637 9.104 8.789C8.75 8.93 8.381 9 8 9C7.619 9 7.25 8.93 6.896 8.789C6.511 8.637 6.172 8.414 5.879 8.121C5.586 7.828 5.363 7.489 5.211 7.104C5.07 6.75 5 6.381 5 6L3 6L3 14L13 14L13 6Z"/>
</vector>
```

### Flutter

```dart
// Gentleface "grocery-bag" (line-round), MIT. https://gentleface.com/icons/grocery-bag
import 'package:flutter/widgets.dart';

class GroceryBagIcon extends StatelessWidget {
  const GroceryBagIcon({super.key, this.size = 16, this.color});
  final double size;
  final Color? color;

  @override
  Widget build(BuildContext context) => CustomPaint(
        size: Size.square(size),
        painter: _GroceryBagIconPainter(color ?? IconTheme.of(context).color ?? const Color(0xFF000000)),
      );
}

class _GroceryBagIconPainter extends CustomPainter {
  _GroceryBagIconPainter(this.color);
  final Color color;

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(5.707, 2.293)
      ..cubicTo(5.902, 2.488, 6, 2.724, 6, 3)
      ..lineTo(6, 6)
      ..cubicTo(6, 6.254, 6.047, 6.5, 6.14, 6.736)
      ..cubicTo(6.242, 6.993, 6.391, 7.219, 6.586, 7.414)
      ..cubicTo(6.781, 7.609, 7.007, 7.758, 7.264, 7.86)
      ..cubicTo(7.5, 7.953, 7.746, 8, 8, 8)
      ..cubicTo(8.254, 8, 8.5, 7.953, 8.736, 7.86)
      ..cubicTo(8.993, 7.758, 9.219, 7.609, 9.414, 7.414)
      ..cubicTo(9.609, 7.219, 9.758, 6.993, 9.86, 6.736)
      ..cubicTo(9.953, 6.5, 10, 6.254, 10, 6)
      ..lineTo(10, 3)
      ..cubicTo(10, 2.724, 10.098, 2.488, 10.293, 2.293)
      ..cubicTo(10.488, 2.098, 10.724, 2, 11, 2)
      ..lineTo(13, 2)
      ..cubicTo(13.276, 2, 13.512, 2.098, 13.707, 2.293)
      ..cubicTo(13.902, 2.488, 14, 2.724, 14, 3)
      ..lineTo(14, 14)
      ..cubicTo(14, 14.276, 13.902, 14.512, 13.707, 14.707)
      ..cubicTo(13.512, 14.902, 13.276, 15, 13, 15)
      ..lineTo(3, 15)
      ..cubicTo(2.724, 15, 2.488, 14.902, 2.293, 14.707)
      ..cubicTo(2.098, 14.512, 2, 14.276, 2, 14)
      ..lineTo(2, 3)
      ..cubicTo(2, 2.724, 2.098, 2.488, 2.293, 2.293)
      ..cubicTo(2.488, 2.098, 2.724, 2, 3, 2)
      ..lineTo(5, 2)
      ..cubicTo(5.276, 2, 5.512, 2.098, 5.707, 2.293)
      ..close()
      ..moveTo(3, 3)
      ..lineTo(3, 5)
      ..lineTo(5, 5)
      ..lineTo(5, 3)
      ..lineTo(3, 3)
      ..close()
      ..moveTo(11, 3)
      ..lineTo(11, 5)
      ..lineTo(13, 5)
      ..lineTo(13, 3)
      ..lineTo(11, 3)
      ..close()
      ..moveTo(13, 6)
      ..lineTo(11, 6)
      ..cubicTo(11, 6.381, 10.93, 6.75, 10.789, 7.104)
      ..cubicTo(10.637, 7.489, 10.414, 7.828, 10.121, 8.121)
      ..cubicTo(9.828, 8.414, 9.489, 8.637, 9.104, 8.789)
      ..cubicTo(8.75, 8.93, 8.381, 9, 8, 9)
      ..cubicTo(7.619, 9, 7.25, 8.93, 6.896, 8.789)
      ..cubicTo(6.511, 8.637, 6.172, 8.414, 5.879, 8.121)
      ..cubicTo(5.586, 7.828, 5.363, 7.489, 5.211, 7.104)
      ..cubicTo(5.07, 6.75, 5, 6.381, 5, 6)
      ..lineTo(3, 6)
      ..lineTo(3, 14)
      ..lineTo(13, 14)
      ..lineTo(13, 6)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

  @override
  bool shouldRepaint(_GroceryBagIconPainter old) => old.color != color;
}
```
