# book Icon

> The book icon from Material as Compose ImageVector Kotlin code, Android Vector Drawable XML and SVG.

- Library: [Material Icons](https://composables.com/icons/icon-libraries/material-icons.md)
- License: Apache 2.0 (full text in the [Material Icons library page](https://composables.com/icons/icon-libraries/material-icons.md))
- Styles: [Filled](https://composables.com/icons/icon-libraries/material-icons/book.md?v=filled), [Outlined](https://composables.com/icons/icon-libraries/material-icons/book.md?v=outlined), [Rounded](https://composables.com/icons/icon-libraries/material-icons/book.md?v=rounded), [Sharp](https://composables.com/icons/icon-libraries/material-icons/book.md?v=sharp), [Two-Tone](https://composables.com/icons/icon-libraries/material-icons/book.md?v=twotone)
- Categories: [Action](https://composables.com/icons/categories/action.md)

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/material-icons/book.kt`

```kotlin
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.path
import androidx.compose.ui.unit.dp

val MaterialIconsBook: ImageVector
    get() {
        if (_MaterialIconsBook != null) return _MaterialIconsBook!!
        
        _MaterialIconsBook = ImageVector.Builder(
            name = "book",
            defaultWidth = 24.dp,
            defaultHeight = 24.dp,
            viewportWidth = 24f,
            viewportHeight = 24f
        ).apply {
            path(
                fill = SolidColor(Color.Transparent)
            ) {
                moveTo(0f, 0f)
                horizontalLineToRelative(24f)
                verticalLineToRelative(24f)
                horizontalLineTo(0f)
                verticalLineTo(0f)
                close()
            }
            path(
                fill = SolidColor(Color.Black)
            ) {
                moveTo(18f, 2f)
                horizontalLineTo(6f)
                curveToRelative(-1.1f, 0f, -2f, 0.9f, -2f, 2f)
                verticalLineToRelative(16f)
                curveToRelative(0f, 1.1f, 0.9f, 2f, 2f, 2f)
                horizontalLineToRelative(12f)
                curveToRelative(1.1f, 0f, 2f, -0.9f, 2f, -2f)
                verticalLineTo(4f)
                curveToRelative(0f, -1.1f, -0.9f, -2f, -2f, -2f)
                close()
                moveTo(9f, 4f)
                horizontalLineToRelative(2f)
                verticalLineToRelative(5f)
                lineToRelative(-1f, -0.75f)
                lineTo(9f, 9f)
                verticalLineTo(4f)
                close()
                moveToRelative(9f, 16f)
                horizontalLineTo(6f)
                verticalLineTo(4f)
                horizontalLineToRelative(1f)
                verticalLineToRelative(9f)
                lineToRelative(3f, -2.25f)
                lineTo(13f, 13f)
                verticalLineTo(4f)
                horizontalLineToRelative(5f)
                verticalLineToRelative(16f)
                close()
            }
        }.build()
        
        return _MaterialIconsBook!!
    }

private var _MaterialIconsBook: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/material-icons/book.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:pathData="M0,0h24v24H0V0Z" />
    <path
        android:fillColor="@android:color/black"
        android:pathData="M18,2H6c-1.1,0 -2,0.9 -2,2v16c0,1.1 0.9,2 2,2h12c1.1,0 2,-0.9 2,-2V4c0,-1.1 -0.9,-2 -2,-2ZM9,4h2v5l-1,-0.75L9,9V4Zm9,16H6V4h1v9l3,-2.25L13,13V4h5v16Z" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/material-icons/book.svg`

```svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 4h2v5l-1-.75L9 9V4zm9 16H6V4h1v9l3-2.25L13 13V4h5v16z"/></svg>
```
