# exclamation-triangle Icon

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

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/heroicons/exclamation-triangle.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 HeroiconsExclamationTriangle: ImageVector
    get() {
        if (_HeroiconsExclamationTriangle != null) return _HeroiconsExclamationTriangle!!
        
        _HeroiconsExclamationTriangle = ImageVector.Builder(
            name = "exclamation-triangle",
            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(12f, 9f)
                verticalLineToRelative(3.75f)
                moveToRelative(-9.303f, 3.376f)
                curveToRelative(-0.866f, 1.5f, 0.217f, 3.374f, 1.948f, 3.374f)
                horizontalLineToRelative(14.71f)
                curveToRelative(1.73f, 0f, 2.813f, -1.874f, 1.948f, -3.374f)
                lineTo(13.949f, 3.378f)
                curveToRelative(-0.866f, -1.5f, -3.032f, -1.5f, -3.898f, 0f)
                lineTo(2.697f, 16.126f)
                close()
                moveTo(12f, 15.75f)
                horizontalLineToRelative(0.007f)
                verticalLineToRelative(0.008f)
                horizontalLineTo(12f)
                verticalLineToRelative(-0.008f)
                close()
            }
        }.build()
        
        return _HeroiconsExclamationTriangle!!
    }

private var _HeroiconsExclamationTriangle: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/heroicons/exclamation-triangle.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="M12,9v3.75m-9.303,3.376c-0.866,1.5 0.217,3.374 1.948,3.374h14.71c1.73,0 2.813,-1.874 1.948,-3.374L13.949,3.378c-0.866,-1.5 -3.032,-1.5 -3.898,0L2.697,16.126ZM12,15.75h0.007v0.008H12v-0.008Z" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/heroicons/exclamation-triangle.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="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"/></svg>
```
