# shopping-cart Icon

> The shopping-cart icon from Heroicons as Compose ImageVector Kotlin code, Android Vector Drawable XML and SVG.

- Library: [Heroicons](https://composables.com/icons/icon-libraries/heroicons.md)
- License: MIT (full text in the [Heroicons library page](https://composables.com/icons/icon-libraries/heroicons.md))
- Styles: [Outline](https://composables.com/icons/icon-libraries/heroicons/shopping-cart.md?v=outline), [Solid](https://composables.com/icons/icon-libraries/heroicons/shopping-cart.md?v=solid), [Mini](https://composables.com/icons/icon-libraries/heroicons/shopping-cart.md?v=mini), [Micro](https://composables.com/icons/icon-libraries/heroicons/shopping-cart.md?v=micro)

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/heroicons/shopping-cart.kt`

```kotlin
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeJoin
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.path
import androidx.compose.ui.unit.dp

val HeroiconsShoppingCart: ImageVector
    get() {
        if (_HeroiconsShoppingCart != null) return _HeroiconsShoppingCart!!
        
        _HeroiconsShoppingCart = ImageVector.Builder(
            name = "shopping-cart",
            defaultWidth = 24.dp,
            defaultHeight = 24.dp,
            viewportWidth = 24f,
            viewportHeight = 24f
        ).apply {
            path(
                fill = SolidColor(Color.Transparent),
                stroke = SolidColor(Color.Black),
                strokeLineWidth = 1.5f,
                strokeLineJoin = StrokeJoin.Miter
            ) {
                moveTo(2.25f, 3f)
                horizontalLineToRelative(1.386f)
                curveToRelative(0.51f, 0f, 0.955f, 0.343f, 1.087f, 0.835f)
                lineToRelative(0.383f, 1.437f)
                moveTo(7.5f, 14.25f)
                arcToRelative(3f, 3f, 0f, false, false, -3f, 3f)
                horizontalLineToRelative(15.75f)
                moveToRelative(-12.75f, -3f)
                horizontalLineToRelative(11.218f)
                curveToRelative(1.121f, -2.3f, 2.1f, -4.684f, 2.924f, -7.138f)
                arcToRelative(60.114f, 60.114f, 0f, false, false, -16.536f, -1.84f)
                moveTo(7.5f, 14.25f)
                lineTo(5.106f, 5.272f)
                moveTo(6f, 20.25f)
                arcToRelative(0.75f, 0.75f, 0f, true, true, -1.5f, 0f)
                arcToRelative(0.75f, 0.75f, 0f, false, true, 1.5f, 0f)
                close()
                moveToRelative(12.75f, 0f)
                arcToRelative(0.75f, 0.75f, 0f, true, true, -1.5f, 0f)
                arcToRelative(0.75f, 0.75f, 0f, false, true, 1.5f, 0f)
                close()
            }
        }.build()
        
        return _HeroiconsShoppingCart!!
    }

private var _HeroiconsShoppingCart: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/heroicons/shopping-cart.xml`

```xml
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24">
    <path
        android:strokeColor="@android:color/black"
        android:strokeWidth="1.5"
        android:pathData="M2.25,3h1.386c0.51,0 0.955,0.343 1.087,0.835l0.383,1.437M7.5,14.25a3,3 0 0,0 -3,3h15.75m-12.75,-3h11.218c1.121,-2.3 2.1,-4.684 2.924,-7.138a60.114,60.114 0 0,0 -16.536,-1.84M7.5,14.25L5.106,5.272M6,20.25a0.75,0.75 0 1,1 -1.5,0a0.75,0.75 0 0,1 1.5,0Zm12.75,0a0.75,0.75 0 1,1 -1.5,0a0.75,0.75 0 0,1 1.5,0Z" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/heroicons/shopping-cart.svg`

```svg
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon"><path stroke-linecap="round" stroke-linejoin="round" d="M2.25 3h1.386c.51 0 .955.343 1.087.835l.383 1.437M7.5 14.25a3 3 0 0 0-3 3h15.75m-12.75-3h11.218c1.121-2.3 2.1-4.684 2.924-7.138a60.114 60.114 0 0 0-16.536-1.84M7.5 14.25 5.106 5.272M6 20.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm12.75 0a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"/></svg>
```
