Prose
Style rendered Markdown without choosing a parser.
Usage
Wrap trusted rendered article markup with Prose or the om-prose class. Use ProseScroll around wide tables. The Markdown renderer remains a consumer choice.
Accessibility
Preserve native headings, lists, tables and links. Use the document language and label focusable scroll regions. Code preserves whitespace.
| Property | Type | Default |
|---|---|---|
| children | ReactNode | None |
| lang | string | Inherited |
| className | string | None |
<Prose>
<h3>Usage guide</h3>
<p>Learn how to use the library.</p>
<ul><li>Install the package.</li></ul>
<pre tabIndex={0} role="region" aria-label="Terminal code"><code>pnpm add @oddmash/ui</code></pre>
<ProseScroll tabIndex={0} role="region" aria-label="Example options table">
<table>
<thead><tr><th scope="col">Name</th><th scope="col">Type</th></tr></thead>
<tbody><tr><td>href</td><td>string</td></tr></tbody>
</table>
</ProseScroll>
</Prose>