MarkdownViewer
A scrolling document view for markdown resources.
import { MarkdownViewer } from '@textui/documents';
<MarkdownViewer uri="file:///README.md" />
Props
No props of its own.
The scrolling counterpart to
MarkdownView: it lays the document out once
with layoutMarkdown, owns the viewport, and hands the view a window of
rows to paint.
That split is why a message in a transcript and a document in a pane can share one renderer while only one of them scrolls.
See also
- MarkdownView - the non-scrolling renderer
- ResourceView - what selects this viewer