Skip to content

Markdown

Rendered GitHub-flavoured markdown, for prose.

Group: Text · Kind: native · in the lite catalog

example

Bold and a list:

  • one
  • two

Open in the playground

The same specimen painted by React, SwiftUI, Compose and gpui.

exponential-ui-markdown on Web
exponential-ui-markdown on iOS
exponential-ui-markdown on Android
exponential-ui-markdown on Desktop
Prop Type Required Bindable Description
text markdown yes yes The GFM source.
lines number – – Truncates the rendered body to this many lines with an ellipsis.
style style – – Extra Box styles for the markdown box.

None.

None.

none

No basic catalog component maps here.

A native component: every renderer paints it directly.

Role: document

document fragment (headings, lists, links, tables keep their roles)

Keys Action
– Tab moves through the links

Recipe parts: Markdown/root Markdown/paragraph Markdown/heading Markdown/link Markdown/code Markdown/codeBlock Markdown/quote Markdown/table Markdown/listItem

Keyed by: :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover

Themes · Write a theme

MessageBubble · Text · Heading · CodeBlock · Kbd · Label