Html

React component for rendering simple HTML with styles, typically derived from Markdown.

GitHub icon Module source

Unpkg icon Unpkg CDN

CSS

This component module has a css export that’s a Set instance containing the URL strings of the CSS files that must be loaded for this component to display correctly (excluding theme and global CSS).

Props

The React component props are documented via TypeScript JSDoc comments in the module source.

Examples

Rending HTML React elements.

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Paragraph containing code and a link.

Blockquote containing text.

Blockquote containing paragraphs.

Blockquote containing paragraphs.

  • Unordered list item
  • Unordered list item
  1. Ordered list item
  2. Ordered list item
Preformatted code
Table headerTable header
Table cellTable cell
Table cellTable cell

Alternate text.

Code

Rending a HTML string.

Heading 1

Code

Locally overridden heading font size.

Heading 1

Code