# octagon Icon

> The octagon icon from Feather as Compose ImageVector Kotlin code, Android Vector Drawable XML and SVG.

- Library: [Feather](https://composables.com/icons/icon-libraries/feather.md)
- License: MIT (full text in the [Feather library page](https://composables.com/icons/icon-libraries/feather.md))

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/feather/octagon.kt`

```kotlin
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
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 FeatherOctagon: ImageVector
    get() {
        if (_FeatherOctagon != null) return _FeatherOctagon!!
        
        _FeatherOctagon = ImageVector.Builder(
            name = "octagon",
            defaultWidth = 24.dp,
            defaultHeight = 24.dp,
            viewportWidth = 24f,
            viewportHeight = 24f
        ).apply {
            path(
                fill = SolidColor(Color.Transparent),
                stroke = SolidColor(Color.Black),
                strokeLineWidth = 2f,
                strokeLineCap = StrokeCap.Round,
                strokeLineJoin = StrokeJoin.Round
            ) {
                moveTo(7.86f, 2f)
                lineTo(16.14f, 2f)
                lineTo(22f, 7.86f)
                lineTo(22f, 16.14f)
                lineTo(16.14f, 22f)
                lineTo(7.86f, 22f)
                lineTo(2f, 16.14f)
                lineTo(2f, 7.86f)
                lineTo(7.86f, 2f)
                close()
            }
        }.build()
        
        return _FeatherOctagon!!
    }

private var _FeatherOctagon: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/feather/octagon.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:strokeLineCap="round"
        android:strokeLineJoin="round"
        android:strokeWidth="2"
        android:pathData="M7.86,2L16.14,2L22,7.86L22,16.14L16.14,22L7.86,22L2,16.14L2,7.86L7.86,2Z" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/feather/octagon.svg`

```svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polygon points="7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"/></svg>
```
