# credit-card Icon

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

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/heroicons/credit-card.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 HeroiconsCreditCard: ImageVector
    get() {
        if (_HeroiconsCreditCard != null) return _HeroiconsCreditCard!!
        
        _HeroiconsCreditCard = ImageVector.Builder(
            name = "credit-card",
            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(2.25f, 8.25f)
                horizontalLineToRelative(19.5f)
                moveTo(2.25f, 9f)
                horizontalLineToRelative(19.5f)
                moveToRelative(-16.5f, 5.25f)
                horizontalLineToRelative(6f)
                moveToRelative(-6f, 2.25f)
                horizontalLineToRelative(3f)
                moveToRelative(-3.75f, 3f)
                horizontalLineToRelative(15f)
                arcToRelative(2.25f, 2.25f, 0f, false, false, 2.25f, -2.25f)
                verticalLineTo(6.75f)
                arcTo(2.25f, 2.25f, 0f, false, false, 19.5f, 4.5f)
                horizontalLineToRelative(-15f)
                arcToRelative(2.25f, 2.25f, 0f, false, false, -2.25f, 2.25f)
                verticalLineToRelative(10.5f)
                arcTo(2.25f, 2.25f, 0f, false, false, 4.5f, 19.5f)
                close()
            }
        }.build()
        
        return _HeroiconsCreditCard!!
    }

private var _HeroiconsCreditCard: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/heroicons/credit-card.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="M2.25,8.25h19.5M2.25,9h19.5m-16.5,5.25h6m-6,2.25h3m-3.75,3h15a2.25,2.25 0 0,0 2.25,-2.25V6.75A2.25,2.25 0 0,0 19.5,4.5h-15a2.25,2.25 0 0,0 -2.25,2.25v10.5A2.25,2.25 0 0,0 4.5,19.5Z" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/heroicons/credit-card.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="M2.25 8.25h19.5M2.25 9h19.5m-16.5 5.25h6m-6 2.25h3m-3.75 3h15a2.25 2.25 0 0 0 2.25-2.25V6.75A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25v10.5A2.25 2.25 0 0 0 4.5 19.5Z"/></svg>
```
