# play-pause Icon

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

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/heroicons/play-pause.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 HeroiconsPlayPause: ImageVector
    get() {
        if (_HeroiconsPlayPause != null) return _HeroiconsPlayPause!!
        
        _HeroiconsPlayPause = ImageVector.Builder(
            name = "play-pause",
            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(21f, 7.5f)
                verticalLineTo(18f)
                moveTo(15f, 7.5f)
                verticalLineTo(18f)
                moveTo(3f, 16.811f)
                verticalLineTo(8.69f)
                curveToRelative(0f, -0.864f, 0.933f, -1.406f, 1.683f, -0.977f)
                lineToRelative(7.108f, 4.061f)
                arcToRelative(1.125f, 1.125f, 0f, false, true, 0f, 1.954f)
                lineToRelative(-7.108f, 4.061f)
                arcTo(1.125f, 1.125f, 0f, false, true, 3f, 16.811f)
                close()
            }
        }.build()
        
        return _HeroiconsPlayPause!!
    }

private var _HeroiconsPlayPause: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/heroicons/play-pause.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,7.5V18M15,7.5V18M3,16.811V8.69c0,-0.864 0.933,-1.406 1.683,-0.977l7.108,4.061a1.125,1.125 0 0,1 0,1.954l-7.108,4.061A1.125,1.125 0 0,1 3,16.811Z" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/heroicons/play-pause.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 7.5V18M15 7.5V18M3 16.811V8.69c0-.864.933-1.406 1.683-.977l7.108 4.061a1.125 1.125 0 0 1 0 1.954l-7.108 4.061A1.125 1.125 0 0 1 3 16.811Z"/></svg>
```
