Interface

TextStyleScope

An interface that introduces the textStyle property to a Style receiver scope.

Source set: Common
@Deprecated(
    DeprecatedStyleScope,
    replaceWith = ReplaceWith(""),
    level = DeprecationLevel.WARNING,
)
public interface TextStyleScope

An interface that introduces the textStyle property to a Style receiver scope.

Functions

textStyle

Source set: Common
public fun textStyle(value: TextStyle)

Applies a complete TextStyle object to the component. This is a convenient way to set multiple text-related properties at once. Text properties are inherited by child text components unless overridden.

This property is inherited.

Parameters

value The TextStyle to apply.
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: