Skip to content

Richtext UI Material 3

Android Library JVM Library

Library that makes RichText compatible with Material design in Compose.

Gradle

dependencies {
  implementation("com.halilibo.compose-richtext:richtext-ui-material3:${richtext_version}")
}

Usage

Material3 RichText library provides a single composable called RichText which automatically passes down Material3 theming attributes to BasicRichText.

RichText

RichText composable wraps around regular BasicRichText while introducing the necessary integration dependencies. RichText shares the exact arguments with regular BasicRichText.

RichText(modifier = Modifier.background(color = Color.White)) {
  Heading(0, "Paragraphs")
  Text("Simple paragraph.")
  ...
}