Status

interface Status

Tokens for communicating system status like success, warning, or error.

Types

Link copied to clipboard
object Companion

Companion object for Status interface, provides a factory method for creating Status instances.

Properties

Link copied to clipboard
abstract val error: Color

The standard M3 color for indicating an error or a failed operation.

Link copied to clipboard
abstract val errorContainer: Color

A toned-down container color for highlighting error states, such as in text fields.

Link copied to clipboard
abstract val onError: Color

Color for text and icons displayed on top of the error color.

Link copied to clipboard
abstract val onErrorContainer: Color

Color for text and icons placed on top of the errorContainer color.

Link copied to clipboard
abstract val onSuccess: Color

Color for text and icons displayed on top of the success color.

Link copied to clipboard

Color for text and icons placed on top of the successContainer color.

Link copied to clipboard
abstract val onWarning: Color

Color for text and icons placed on top of the warning color.

Link copied to clipboard

Color for text and icons placed on top of the warningContainer color.

Link copied to clipboard
abstract val success: Color

A semantic color used to indicate a successful operation or state. Not a core M3 token, but a common addition.

Link copied to clipboard
abstract val successContainer: Color

A toned-down container color for highlighting success states.

Link copied to clipboard
abstract val warning: Color

A semantic color used to indicate a warning or a state that requires user attention. Not a core M3 token.

Link copied to clipboard
abstract val warningContainer: Color

A toned-down container color for highlighting warning states.

Functions

Link copied to clipboard
fun ThemeColorTokens.Status.copy(success: Color = this.success, onSuccess: Color = this.onSuccess, successContainer: Color = this.successContainer, onSuccessContainer: Color = this.onSuccessContainer, warning: Color = this.warning, onWarning: Color = this.onWarning, warningContainer: Color = this.warningContainer, onWarningContainer: Color = this.onWarningContainer, error: Color = this.error, onError: Color = this.onError, errorContainer: Color = this.errorContainer, onErrorContainer: Color = this.onErrorContainer): ThemeColorTokens.Status

Copies this Status replacing provided values.