State of Compose 2023 results are in! Click here to learn more

← Back to Material Compose

ProvideEmphasis

Component
in
Material
. Since 0.1.0-dev15

Overview

Code Examples

Applies emphasis to content, by modifying the value of AmbientContentColor.

See AmbientEmphasisLevels to retrieve the levels of emphasis provided in the theme, so they can be applied with this function.

Overloads

ProvideEmphasis

@Deprecated(
    message = "Emphasis has been simplified and replaced with ContentAlpha",
    replaceWith = ReplaceWith(
        "Providers(AmbientContentAlpha provides ContentAlpha.high, children = content)",
        "androidx.compose.runtime.Providers",
        "androidx.compose.material.ContentAlpha"
    )
)
@Composable
fun ProvideEmphasis(emphasis: Emphasis, content: @Composable () -> Unit)