# arrow-top-right-on-square Icon

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

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/heroicons/arrow-top-right-on-square.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 HeroiconsArrowTopRightOnSquare: ImageVector
    get() {
        if (_HeroiconsArrowTopRightOnSquare != null) return _HeroiconsArrowTopRightOnSquare!!
        
        _HeroiconsArrowTopRightOnSquare = ImageVector.Builder(
            name = "arrow-top-right-on-square",
            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(13.5f, 6f)
                horizontalLineTo(5.25f)
                arcTo(2.25f, 2.25f, 0f, false, false, 3f, 8.25f)
                verticalLineToRelative(10.5f)
                arcTo(2.25f, 2.25f, 0f, false, false, 5.25f, 21f)
                horizontalLineToRelative(10.5f)
                arcTo(2.25f, 2.25f, 0f, false, false, 18f, 18.75f)
                verticalLineTo(10.5f)
                moveToRelative(-10.5f, 6f)
                lineTo(21f, 3f)
                moveToRelative(0f, 0f)
                horizontalLineToRelative(-5.25f)
                moveTo(21f, 3f)
                verticalLineToRelative(5.25f)
            }
        }.build()
        
        return _HeroiconsArrowTopRightOnSquare!!
    }

private var _HeroiconsArrowTopRightOnSquare: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/heroicons/arrow-top-right-on-square.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="M13.5,6H5.25A2.25,2.25 0 0,0 3,8.25v10.5A2.25,2.25 0 0,0 5.25,21h10.5A2.25,2.25 0 0,0 18,18.75V10.5m-10.5,6L21,3m0,0h-5.25M21,3v5.25" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/heroicons/arrow-top-right-on-square.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="M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"/></svg>
```
