# h2 Icon

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

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/heroicons/h2.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 HeroiconsH2: ImageVector
    get() {
        if (_HeroiconsH2 != null) return _HeroiconsH2!!
        
        _HeroiconsH2 = ImageVector.Builder(
            name = "h2",
            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(21.75f, 19.5f)
                horizontalLineTo(16.5f)
                verticalLineToRelative(-1.609f)
                arcToRelative(2.25f, 2.25f, 0f, false, true, 1.244f, -2.012f)
                lineToRelative(2.89f, -1.445f)
                curveToRelative(0.651f, -0.326f, 1.116f, -0.955f, 1.116f, -1.683f)
                curveToRelative(0f, -0.498f, -0.04f, -0.987f, -0.118f, -1.463f)
                curveToRelative(-0.135f, -0.825f, -0.835f, -1.422f, -1.668f, -1.489f)
                arcToRelative(15.202f, 15.202f, 0f, false, false, -3.464f, 0.12f)
                moveTo(2.243f, 4.492f)
                verticalLineToRelative(7.5f)
                moveToRelative(0f, 0f)
                verticalLineToRelative(7.502f)
                moveToRelative(0f, -7.501f)
                horizontalLineToRelative(10.5f)
                moveToRelative(0f, -7.5f)
                verticalLineToRelative(7.5f)
                moveToRelative(0f, 0f)
                verticalLineToRelative(7.501f)
            }
        }.build()
        
        return _HeroiconsH2!!
    }

private var _HeroiconsH2: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/heroicons/h2.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="M21.75,19.5H16.5v-1.609a2.25,2.25 0 0,1 1.244,-2.012l2.89,-1.445c0.651,-0.326 1.116,-0.955 1.116,-1.683c0,-0.498 -0.04,-0.987 -0.118,-1.463c-0.135,-0.825 -0.835,-1.422 -1.668,-1.489a15.202,15.202 0 0,0 -3.464,0.12M2.243,4.492v7.5m0,0v7.502m0,-7.501h10.5m0,-7.5v7.5m0,0v7.501" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/heroicons/h2.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="M21.75 19.5H16.5v-1.609a2.25 2.25 0 0 1 1.244-2.012l2.89-1.445c.651-.326 1.116-.955 1.116-1.683 0-.498-.04-.987-.118-1.463-.135-.825-.835-1.422-1.668-1.489a15.202 15.202 0 0 0-3.464.12M2.243 4.492v7.5m0 0v7.502m0-7.501h10.5m0-7.5v7.5m0 0v7.501"/></svg>
```
