# truck Icon

> The truck 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/truck.md?v=outline), [Solid](https://composables.com/icons/icon-libraries/heroicons/truck.md?v=solid), [Mini](https://composables.com/icons/icon-libraries/heroicons/truck.md?v=mini), [Micro](https://composables.com/icons/icon-libraries/heroicons/truck.md?v=micro)

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/heroicons/truck.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 HeroiconsTruck: ImageVector
    get() {
        if (_HeroiconsTruck != null) return _HeroiconsTruck!!
        
        _HeroiconsTruck = ImageVector.Builder(
            name = "truck",
            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(8.25f, 18.75f)
                arcToRelative(1.5f, 1.5f, 0f, false, true, -3f, 0f)
                moveToRelative(3f, 0f)
                arcToRelative(1.5f, 1.5f, 0f, false, false, -3f, 0f)
                moveToRelative(3f, 0f)
                horizontalLineToRelative(6f)
                moveToRelative(-9f, 0f)
                horizontalLineTo(3.375f)
                arcToRelative(1.125f, 1.125f, 0f, false, true, -1.125f, -1.125f)
                verticalLineTo(14.25f)
                moveToRelative(17.25f, 4.5f)
                arcToRelative(1.5f, 1.5f, 0f, false, true, -3f, 0f)
                moveToRelative(3f, 0f)
                arcToRelative(1.5f, 1.5f, 0f, false, false, -3f, 0f)
                moveToRelative(3f, 0f)
                horizontalLineToRelative(1.125f)
                curveToRelative(0.621f, 0f, 1.129f, -0.504f, 1.09f, -1.124f)
                arcToRelative(17.902f, 17.902f, 0f, false, false, -3.213f, -9.193f)
                arcToRelative(2.056f, 2.056f, 0f, false, false, -1.58f, -0.86f)
                horizontalLineTo(14.25f)
                moveTo(16.5f, 18.75f)
                horizontalLineToRelative(-2.25f)
                moveToRelative(0f, -11.177f)
                verticalLineToRelative(-0.958f)
                curveToRelative(0f, -0.568f, -0.422f, -1.048f, -0.987f, -1.106f)
                arcToRelative(48.554f, 48.554f, 0f, false, false, -10.026f, 0f)
                arcToRelative(1.106f, 1.106f, 0f, false, false, -0.987f, 1.106f)
                verticalLineToRelative(7.635f)
                moveToRelative(12f, -6.677f)
                verticalLineToRelative(6.677f)
                moveToRelative(0f, 4.5f)
                verticalLineToRelative(-4.5f)
                moveToRelative(0f, 0f)
                horizontalLineToRelative(-12f)
            }
        }.build()
        
        return _HeroiconsTruck!!
    }

private var _HeroiconsTruck: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/heroicons/truck.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="M8.25,18.75a1.5,1.5 0 0,1 -3,0m3,0a1.5,1.5 0 0,0 -3,0m3,0h6m-9,0H3.375a1.125,1.125 0 0,1 -1.125,-1.125V14.25m17.25,4.5a1.5,1.5 0 0,1 -3,0m3,0a1.5,1.5 0 0,0 -3,0m3,0h1.125c0.621,0 1.129,-0.504 1.09,-1.124a17.902,17.902 0 0,0 -3.213,-9.193a2.056,2.056 0 0,0 -1.58,-0.86H14.25M16.5,18.75h-2.25m0,-11.177v-0.958c0,-0.568 -0.422,-1.048 -0.987,-1.106a48.554,48.554 0 0,0 -10.026,0a1.106,1.106 0 0,0 -0.987,1.106v7.635m12,-6.677v6.677m0,4.5v-4.5m0,0h-12" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/heroicons/truck.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="M8.25 18.75a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m3 0h6m-9 0H3.375a1.125 1.125 0 0 1-1.125-1.125V14.25m17.25 4.5a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m3 0h1.125c.621 0 1.129-.504 1.09-1.124a17.902 17.902 0 0 0-3.213-9.193 2.056 2.056 0 0 0-1.58-.86H14.25M16.5 18.75h-2.25m0-11.177v-.958c0-.568-.422-1.048-.987-1.106a48.554 48.554 0 0 0-10.026 0 1.106 1.106 0 0 0-.987 1.106v7.635m12-6.677v6.677m0 4.5v-4.5m0 0h-12"/></svg>
```
