Skip to content

StyledText

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

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:254

Returns true if this styled text is equal to other.

StyledText

boolean


static fromMarkdown(markdown): StyledText

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

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:246

Creates styled text from plain text without applying markdown parsing.

string

StyledText


© 2026 SixtyFPS GmbH