Oddmash UI
모든 컴포넌트

문서 본문

파서를 지정하지 않고 렌더링된 Markdown에 스타일을 적용합니다.

사용법

신뢰할 수 있는 렌더링 본문을 Prose 또는 om-prose 클래스로 감싸세요. 넓은 표에는 ProseScroll을 사용합니다. Markdown 렌더러는 제품에서 선택합니다.

접근성

기본 제목, 목록, 표, 링크 의미를 유지하세요. 문서 언어를 설정하고 포커스 가능한 스크롤 영역에 이름을 지정하세요. 코드 공백은 유지됩니다.

속성타입기본값
childrenReactNodeNone
langstringInherited
classNamestringNone
<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>

인터랙티브 문서