Skip to content

Richtext UI Material

Android Library JVM Library

Library that makes RichText compatible with Material design in Compose.

Gradle

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

Usage

Material RichText library provides a single composable called RichText which automatically passes down Material 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.")
  ...
}