Components / Text

Markdown nativelite

Rendered GitHub-flavoured markdown, for prose.

Children
none
Loading the renderer…
Markdown rendered by the React renderer on Web
Web React
Markdown rendered by the SwiftUI renderer on iOS
iOS SwiftUI
Markdown rendered by the Compose renderer on Android
Android Compose
Markdown rendered by the gpui renderer on Desktop
Desktop gpui

View exponential-ui-markdown, painted by each native renderer.

PropTypeDefaultDescription
textrequiredbindmarkdown–The GFM source.
linesnumber–Truncates the rendered body to this many lines with an ellipsis.
stylestyle–Extra Box styles for the markdown box.

No events, no slots. Children: none.

Role
document
Semantics
document fragment (headings, lists, links, tables keep their roles)
KeysAction
–Tab moves through the links
Recipe parts
Markdown/rootMarkdown/paragraphMarkdown/headingMarkdown/linkMarkdown/codeMarkdown/codeBlockMarkdown/quoteMarkdown/tableMarkdown/listItem
Keyed by
:hover:pressed:focus:disabled:checked:open:selected:invalid:dragover

Themes · Write a theme