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

TextDirectionScope

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

Source set: Common
@ExperimentalFoundationStyleApi
interface TextDirectionScope

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

Functions

textDirection

fun textDirection(value: TextDirection) // int enum of 5 values + unspecified, 3 bits

Sets the text direction (e.g., LTR, RTL, content-based). This property is inherited by child text components if not overridden. This affects text layout and is a component of a TextStyle.

This property is inherited.

Parameters

value The TextDirection to apply.

Last updated: