Compose Unstyled 2.0 is out! Check the official announcement blog ->
Interface

TextStyleScope

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

Source set: Common
@ExperimentalFoundationStyleApi
interface TextStyleScope

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

Functions

textStyle

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.

Last updated: