created:3/15/2021
updated:3/15/2021
source lines:18
comments %:67
Markdown
Markdown display component to compile and display markdown at run-time. Uses markdown-to-jsx internally.
Name | Description | Default |
---|---|---|
children | the markdown source code is passed as a children pro. string | (string & {}) | (string & ReactElement<any, string | ((props: any) => ReactElement<any, string | ... | (new (props: any) => Component<any, any, any>)>) | (new (props: any) => Component<...>)>) | (string & ReactNodeArray) | (string & ReactPortal) | - |
components | components to customize the markdown display. any | - |
package | imports | peer |
---|---|---|
markdown-to-jsx ^6.11.0 | MarkdownToJSXMarkdownOptions | |
react ^17.0.1 | FC | * |
theme-ui ^0.6.0-alpha.7 | jsx |
file | imports |
---|---|
"./MarkdownComponents" | markdownComponents |