# home Icon

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

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/heroicons/home.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 HeroiconsHome: ImageVector
    get() {
        if (_HeroiconsHome != null) return _HeroiconsHome!!
        
        _HeroiconsHome = ImageVector.Builder(
            name = "home",
            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, 12f)
                lineToRelative(8.954f, -8.955f)
                curveToRelative(0.44f, -0.439f, 1.152f, -0.439f, 1.591f, 0f)
                lineTo(21.75f, 12f)
                moveTo(4.5f, 9.75f)
                verticalLineToRelative(10.125f)
                curveToRelative(0f, 0.621f, 0.504f, 1.125f, 1.125f, 1.125f)
                horizontalLineTo(9.75f)
                verticalLineToRelative(-4.875f)
                curveToRelative(0f, -0.621f, 0.504f, -1.125f, 1.125f, -1.125f)
                horizontalLineToRelative(2.25f)
                curveToRelative(0.621f, 0f, 1.125f, 0.504f, 1.125f, 1.125f)
                verticalLineTo(21f)
                horizontalLineToRelative(4.125f)
                curveToRelative(0.621f, 0f, 1.125f, -0.504f, 1.125f, -1.125f)
                verticalLineTo(9.75f)
                moveTo(8.25f, 21f)
                horizontalLineToRelative(8.25f)
            }
        }.build()
        
        return _HeroiconsHome!!
    }

private var _HeroiconsHome: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/heroicons/home.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,12l8.954,-8.955c0.44,-0.439 1.152,-0.439 1.591,0L21.75,12M4.5,9.75v10.125c0,0.621 0.504,1.125 1.125,1.125H9.75v-4.875c0,-0.621 0.504,-1.125 1.125,-1.125h2.25c0.621,0 1.125,0.504 1.125,1.125V21h4.125c0.621,0 1.125,-0.504 1.125,-1.125V9.75M8.25,21h8.25" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/heroicons/home.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 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"/></svg>
```
