# star_rate Icon

> The star_rate 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/star_rate.md?v=filled), [Outlined](https://composables.com/icons/icon-libraries/material-icons/star_rate.md?v=outlined), [Rounded](https://composables.com/icons/icon-libraries/material-icons/star_rate.md?v=rounded), [Sharp](https://composables.com/icons/icon-libraries/material-icons/star_rate.md?v=sharp), [Two-Tone](https://composables.com/icons/icon-libraries/material-icons/star_rate.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/star_rate.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.group
import androidx.compose.ui.graphics.vector.path
import androidx.compose.ui.unit.dp

val MaterialIconsStarRate: ImageVector
    get() {
        if (_MaterialIconsStarRate != null) return _MaterialIconsStarRate!!
        
        _MaterialIconsStarRate = ImageVector.Builder(
            name = "star_rate",
            defaultWidth = 24.dp,
            defaultHeight = 24.dp,
            viewportWidth = 24f,
            viewportHeight = 24f
        ).apply {
            group {
                path(
                    fill = SolidColor(Color.Transparent)
                ) {
                    moveTo(0f, 0f)
                    horizontalLineTo(24f)
                    verticalLineTo(24f)
                    horizontalLineTo(0f)
                    verticalLineTo(0f)
                    close()
                }
                path(
                    fill = SolidColor(Color.Black)
                ) {
                    moveTo(12f, 8.89f)
                    lineTo(12.94f, 12f)
                    horizontalLineToRelative(2.82f)
                    lineToRelative(-2.27f, 1.62f)
                    lineToRelative(0.93f, 3.01f)
                    lineTo(12f, 14.79f)
                    lineToRelative(-2.42f, 1.84f)
                    lineToRelative(0.93f, -3.01f)
                    lineTo(8.24f, 12f)
                    horizontalLineToRelative(2.82f)
                    lineTo(12f, 8.89f)
                    moveTo(12f, 2f)
                    lineToRelative(-2.42f, 8f)
                    horizontalLineTo(2f)
                    lineToRelative(6.17f, 4.41f)
                    lineTo(5.83f, 22f)
                    lineTo(12f, 17.31f)
                    lineTo(18.18f, 22f)
                    lineToRelative(-2.35f, -7.59f)
                    lineTo(22f, 10f)
                    horizontalLineToRelative(-7.58f)
                    lineTo(12f, 2f)
                    lineTo(12f, 2f)
                    close()
                }
            }
        }.build()
        
        return _MaterialIconsStarRate!!
    }

private var _MaterialIconsStarRate: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/material-icons/star_rate.xml`

```xml
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:viewportWidth="24"
    android:viewportHeight="24">
    <path
        android:pathData="M0,0H24V24H0V0Z" />
    <path
        android:fillColor="@android:color/black"
        android:pathData="M12,8.89L12.94,12h2.82l-2.27,1.62l0.93,3.01L12,14.79l-2.42,1.84l0.93,-3.01L8.24,12h2.82L12,8.89M12,2l-2.42,8H2l6.17,4.41L5.83,22L12,17.31L18.18,22l-2.35,-7.59L22,10h-7.58L12,2L12,2Z" />
</vector>
```

## SVG

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

```svg
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" viewBox="0 0 24 24" fill="currentColor"><g><rect fill="none" height="24" width="24" x="0"/><path d="M12,8.89L12.94,12h2.82l-2.27,1.62l0.93,3.01L12,14.79l-2.42,1.84l0.93-3.01L8.24,12h2.82L12,8.89 M12,2l-2.42,8H2 l6.17,4.41L5.83,22L12,17.31L18.18,22l-2.35-7.59L22,10h-7.58L12,2L12,2z"/></g></svg>
```
