Utility

sealed interface Utility(source)

Defines utility components that can be used in text composables to add functionality such as loading indicators or timekeeping.

Inheritors

Types

Link copied to clipboard
data class Loading(val type: LoadingType = LoadingType.Spinner()) : Utility

A utility style that displays a loading indicator based on the specified loading type.

Link copied to clipboard
data class TimeKeeping(val format: String = "HH:mm:ss", val liveUpdate: Boolean = false, val updateInterval: Duration = 1.seconds) : Utility

A utility style that displays time, optionally with live updates based on a specified format.