TextStyleModifiers

data class TextStyleModifiers(val bold: (TextStyle) -> TextStyle, val italics: (TextStyle) -> TextStyle, val strikethrough: (TextStyle) -> TextStyle, val link: (TextStyle) -> TextStyle, val code: (TextStyle) -> TextStyle)(source)

Provides functions to modify a TextStyle, producing a style for a particular text format. It is recommended to modify the provided TextStyle, which may already be stylized for other formatting.

Constructors

Link copied to clipboard
constructor(bold: (TextStyle) -> TextStyle, italics: (TextStyle) -> TextStyle, strikethrough: (TextStyle) -> TextStyle, link: (TextStyle) -> TextStyle, code: (TextStyle) -> TextStyle)

Properties

Link copied to clipboard

A function that produces a TextStyle for bold text.

Link copied to clipboard

A function that produces a TextStyle for inline code text.

Link copied to clipboard

A function that produces a TextStyle for italicized text.

Link copied to clipboard

A function that produces a TextStyle for clickable link text.

Link copied to clipboard

A function that produces a TextStyle for strikethrough text.