# RippleDefaults

# RippleDefaults

Artifact:[androidx.compose.material:material](https://developer.android.com/jetpack/androidx/releases/compose-material)  
[View Source](https://cs.android.com/search?q=file:androidx/compose/material/Ripple.kt+class:androidx.compose.material.RippleDefaults)  
Added in[1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-material#1.7.0)
Common/AllAndroid/JVM
  - Cmn  

  ```
  object RippleDefaults
  ```

*** ** * ** ***

Default values used by[ripple](https://developer.android.com/reference/kotlin/androidx/compose/material/package-summary#ripple(kotlin.Boolean,androidx.compose.ui.unit.Dp,androidx.compose.ui.graphics.Color)).

## Summary

|                                            ### Public functions                                            |
|------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----|
| [RippleAlpha](https://developer.android.com/reference/kotlin/androidx/compose/material/ripple/RippleAlpha) | [rippleAlpha](https://developer.android.com/reference/kotlin/androidx/compose/material/RippleDefaults#rippleAlpha(androidx.compose.ui.graphics.Color,kotlin.Boolean))`(contentColor: `[Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color)`, lightTheme: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` Represents the default[RippleAlpha](https://developer.android.com/reference/kotlin/androidx/compose/material/ripple/RippleAlpha)that will be used for a ripple to indicate different states. | Cmn |
| [Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color)                 | [rippleColor](https://developer.android.com/reference/kotlin/androidx/compose/material/RippleDefaults#rippleColor(androidx.compose.ui.graphics.Color,kotlin.Boolean))`(contentColor: `[Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color)`, lightTheme: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` Represents the default color that will be used for a ripple if a color has not been explicitly set on the ripple instance.                                                                   | Cmn |

## Public functions

### rippleAlpha

Cmn  
Added in[1.10.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-material#1.10.0-rc01)  

```
fun rippleAlpha(contentColor: Color, lightTheme: Boolean): RippleAlpha
```

Represents the default[RippleAlpha](https://developer.android.com/reference/kotlin/androidx/compose/material/ripple/RippleAlpha)that will be used for a ripple to indicate different states.  

|                                                 Parameters                                                 |
|------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------|
| `contentColor: `[Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color) | the color of content (text or iconography) in the component that contains the ripple. |
| `lightTheme: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)          | whether the theme is light or not                                                     |

### rippleColor

Cmn  
Added in[1.10.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-material#1.10.0-rc01)  

```
fun rippleColor(contentColor: Color, lightTheme: Boolean): Color
```

Represents the default color that will be used for a ripple if a color has not been explicitly set on the ripple instance.  

|                                                 Parameters                                                 |
|------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------|
| `contentColor: `[Color](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color) | the color of content (text or iconography) in the component that contains the ripple. |
| `lightTheme: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)          | whether the theme is light or not                                                     |