記事本文
パーサーを選ばず、レンダリング済み Markdown をスタイルします。
使い方
信頼できる描画済み記事を Prose または om-prose で包みます。幅の広い表には ProseScroll を使います。Markdown レンダラーは利用側が選びます。
アクセシビリティ
ネイティブの見出し、リスト、表、リンクを維持します。文書の言語を設定し、フォーカス可能なスクロール領域に名前を付けます。コードの空白は保持されます。
| プロパティ | 型 | 既定値 |
|---|---|---|
| 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>