Skip to content

StyledText

Defined in: api/node/rust-module.d.cts:299

Styled text parsed from markdown or plain text.

Use StyledText.fromMarkdown() or StyledText.fromPlainText() to create instances. Assign the result to a styled-text property in a Slint component to display it.

new StyledText(): StyledText

StyledText

equals(other): boolean

Defined in: api/node/rust-module.d.cts:309

Returns true if this styled text is equal to other.

StyledText

boolean


static fromMarkdown(markdown): StyledText

Defined in: api/node/rust-module.d.cts:307

Parses markdown into styled text.

string

StyledText

if the markdown contains unsupported syntax.


static fromPlainText(text): StyledText

Defined in: api/node/rust-module.d.cts:301

Creates styled text from plain text without applying markdown parsing.

string

StyledText


© 2026 SixtyFPS GmbH