# ticket Icon

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

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/heroicons/ticket.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 HeroiconsTicket: ImageVector
    get() {
        if (_HeroiconsTicket != null) return _HeroiconsTicket!!
        
        _HeroiconsTicket = ImageVector.Builder(
            name = "ticket",
            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(16.5f, 6f)
                verticalLineToRelative(0.75f)
                moveToRelative(0f, 3f)
                verticalLineToRelative(0.75f)
                moveToRelative(0f, 3f)
                verticalLineToRelative(0.75f)
                moveToRelative(0f, 3f)
                verticalLineTo(18f)
                moveToRelative(-9f, -5.25f)
                horizontalLineToRelative(5.25f)
                moveTo(7.5f, 15f)
                horizontalLineToRelative(3f)
                moveTo(3.375f, 5.25f)
                curveToRelative(-0.621f, 0f, -1.125f, 0.504f, -1.125f, 1.125f)
                verticalLineToRelative(3.026f)
                arcToRelative(2.999f, 2.999f, 0f, false, true, 0f, 5.198f)
                verticalLineToRelative(3.026f)
                curveToRelative(0f, 0.621f, 0.504f, 1.125f, 1.125f, 1.125f)
                horizontalLineToRelative(17.25f)
                curveToRelative(0.621f, 0f, 1.125f, -0.504f, 1.125f, -1.125f)
                verticalLineToRelative(-3.026f)
                arcToRelative(2.999f, 2.999f, 0f, false, true, 0f, -5.198f)
                verticalLineTo(6.375f)
                curveToRelative(0f, -0.621f, -0.504f, -1.125f, -1.125f, -1.125f)
                horizontalLineTo(3.375f)
                close()
            }
        }.build()
        
        return _HeroiconsTicket!!
    }

private var _HeroiconsTicket: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/heroicons/ticket.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="M16.5,6v0.75m0,3v0.75m0,3v0.75m0,3V18m-9,-5.25h5.25M7.5,15h3M3.375,5.25c-0.621,0 -1.125,0.504 -1.125,1.125v3.026a2.999,2.999 0 0,1 0,5.198v3.026c0,0.621 0.504,1.125 1.125,1.125h17.25c0.621,0 1.125,-0.504 1.125,-1.125v-3.026a2.999,2.999 0 0,1 0,-5.198V6.375c0,-0.621 -0.504,-1.125 -1.125,-1.125H3.375Z" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/heroicons/ticket.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="M16.5 6v.75m0 3v.75m0 3v.75m0 3V18m-9-5.25h5.25M7.5 15h3M3.375 5.25c-.621 0-1.125.504-1.125 1.125v3.026a2.999 2.999 0 0 1 0 5.198v3.026c0 .621.504 1.125 1.125 1.125h17.25c.621 0 1.125-.504 1.125-1.125v-3.026a2.999 2.999 0 0 1 0-5.198V6.375c0-.621-.504-1.125-1.125-1.125H3.375Z"/></svg>
```
