Property

LocalRemoteTextConfiguration

CompositionLocal containing the preferred RemoteTextConfiguration that will be used by RemoteText components by default consisting of text alignment, overflow specification and max lines.

Source set: Android
public val LocalRemoteTextConfiguration: ProvidableCompositionLocal<RemoteTextConfiguration> =
    compositionLocalOf(structuralEqualityPolicy()) {
        RemoteTextConfiguration(
            RemoteTextConfigurationDefaults.TextAlign,
            RemoteTextConfigurationDefaults.Overflow,
            RemoteTextConfigurationDefaults.MaxLines,
        )
    }

CompositionLocal containing the preferred RemoteTextConfiguration that will be used by RemoteText components by default consisting of text alignment, overflow specification and max lines. Material3 components related to text such as RemoteButton, RemoteCheckboxButton, RemoteSwitchButton, RemoteRadioButton use LocalRemoteTextConfiguration to set values with which to style child text components.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: