# calendar Icon

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

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/heroicons/calendar.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 HeroiconsCalendar: ImageVector
    get() {
        if (_HeroiconsCalendar != null) return _HeroiconsCalendar!!
        
        _HeroiconsCalendar = ImageVector.Builder(
            name = "calendar",
            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(6.75f, 3f)
                verticalLineToRelative(2.25f)
                moveTo(17.25f, 3f)
                verticalLineToRelative(2.25f)
                moveTo(3f, 18.75f)
                verticalLineTo(7.5f)
                arcToRelative(2.25f, 2.25f, 0f, false, true, 2.25f, -2.25f)
                horizontalLineToRelative(13.5f)
                arcTo(2.25f, 2.25f, 0f, false, true, 21f, 7.5f)
                verticalLineToRelative(11.25f)
                moveToRelative(-18f, 0f)
                arcTo(2.25f, 2.25f, 0f, false, false, 5.25f, 21f)
                horizontalLineToRelative(13.5f)
                arcTo(2.25f, 2.25f, 0f, false, false, 21f, 18.75f)
                moveToRelative(-18f, 0f)
                verticalLineToRelative(-7.5f)
                arcTo(2.25f, 2.25f, 0f, false, true, 5.25f, 9f)
                horizontalLineToRelative(13.5f)
                arcTo(2.25f, 2.25f, 0f, false, true, 21f, 11.25f)
                verticalLineToRelative(7.5f)
            }
        }.build()
        
        return _HeroiconsCalendar!!
    }

private var _HeroiconsCalendar: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/heroicons/calendar.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="M6.75,3v2.25M17.25,3v2.25M3,18.75V7.5a2.25,2.25 0 0,1 2.25,-2.25h13.5A2.25,2.25 0 0,1 21,7.5v11.25m-18,0A2.25,2.25 0 0,0 5.25,21h13.5A2.25,2.25 0 0,0 21,18.75m-18,0v-7.5A2.25,2.25 0 0,1 5.25,9h13.5A2.25,2.25 0 0,1 21,11.25v7.5" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/heroicons/calendar.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="M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5"/></svg>
```
