Package-level declarations

Types

Link copied to clipboard
class InlineContent(initialSize: Density.() -> IntSize? = null, placeholderVerticalAlign: PlaceholderVerticalAlign = AboveBaseline, content: @Composable Density.(alternateText: String) -> Unit)

A Composable that can be embedded inline in a RichTextString by passing to RichTextString.Builder.appendInlineContent.

Link copied to clipboard

A special type of AnnotatedString that is formatted using higher-level directives that are configured using a RichTextStringStyle.

Link copied to clipboard
data class RichTextStringStyle(val boldStyle: SpanStyle? = null, val italicStyle: SpanStyle? = null, val underlineStyle: SpanStyle? = null, val strikethroughStyle: SpanStyle? = null, val subscriptStyle: SpanStyle? = null, val superscriptStyle: SpanStyle? = null, val codeStyle: SpanStyle? = null, val linkStyle: SpanStyle? = null)

Defines the SpanStyles that are used for various RichTextString formatting directives.

Functions

Link copied to clipboard

Convenience function for creating a RichTextString using a Builder.

Link copied to clipboard
fun RichTextScope.Text(text: RichTextString, modifier: Modifier = Modifier, onTextLayout: (TextLayoutResult) -> Unit = {}, softWrap: Boolean = true, overflow: TextOverflow = TextOverflow.Clip, maxLines: Int = Int.MAX_VALUE)

Renders a RichTextString as created with richTextString.

Link copied to clipboard