Android 12 Developer Preview is here! Try it out, and give us your feedback!

ContentAlpha

object ContentAlpha
kotlin.Any
   ↳ androidx.compose.material.ContentAlpha

Default alpha levels used by Material components.

See LocalContentAlpha.

Summary

Properties
Float

A low level of content alpha used to represent disabled components, such as text in a disabled Button.

Float

A high level of content alpha, used to represent high emphasis text such as input text in a selected TextField.

Float

A medium level of content alpha, used to represent medium emphasis text such as placeholder text in a TextField.

Properties

disabled

val disabled: Float

A low level of content alpha used to represent disabled components, such as text in a disabled Button.

high

val high: Float

A high level of content alpha, used to represent high emphasis text such as input text in a selected TextField.

medium

val medium: Float

A medium level of content alpha, used to represent medium emphasis text such as placeholder text in a TextField.