# text_fields Icon

> The text_fields 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/text_fields.md?v=filled), [Outlined](https://composables.com/icons/icon-libraries/material-icons/text_fields.md?v=outlined), [Rounded](https://composables.com/icons/icon-libraries/material-icons/text_fields.md?v=rounded), [Sharp](https://composables.com/icons/icon-libraries/material-icons/text_fields.md?v=sharp), [Two-Tone](https://composables.com/icons/icon-libraries/material-icons/text_fields.md?v=twotone)
- Categories: [Editor](https://composables.com/icons/categories/editor.md)

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/material-icons/text_fields.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 MaterialIconsTextFields: ImageVector
    get() {
        if (_MaterialIconsTextFields != null) return _MaterialIconsTextFields!!
        
        _MaterialIconsTextFields = ImageVector.Builder(
            name = "text_fields",
            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)
                close()
            }
            path(
                fill = SolidColor(Color.Black)
            ) {
                moveTo(2.5f, 4f)
                verticalLineToRelative(3f)
                horizontalLineToRelative(5f)
                verticalLineToRelative(12f)
                horizontalLineToRelative(3f)
                verticalLineTo(7f)
                horizontalLineToRelative(5f)
                verticalLineTo(4f)
                horizontalLineToRelative(-13f)
                close()
                moveToRelative(19f, 5f)
                horizontalLineToRelative(-9f)
                verticalLineToRelative(3f)
                horizontalLineToRelative(3f)
                verticalLineToRelative(7f)
                horizontalLineToRelative(3f)
                verticalLineToRelative(-7f)
                horizontalLineToRelative(3f)
                verticalLineTo(9f)
                close()
            }
        }.build()
        
        return _MaterialIconsTextFields!!
    }

private var _MaterialIconsTextFields: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/material-icons/text_fields.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,0h24v24H0Z" />
    <path
        android:fillColor="@android:color/black"
        android:pathData="M2.5,4v3h5v12h3V7h5V4h-13Zm19,5h-9v3h3v7h3v-7h3V9Z" />
</vector>
```

## SVG

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

```svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M0 0h24v24H0z" fill="none"/><path d="M2.5 4v3h5v12h3V7h5V4h-13zm19 5h-9v3h3v7h3v-7h3V9z"/></svg>
```
