UNPKG

597 BJavaScriptView Raw
1import React from 'react';
2import Markdown from 'markdown-to-jsx';
3import { ResetWrapper } from '../typography/DocumentFormatting';
4import { components } from '..';
5
6/**
7 * A markdown description for a component, typically used to show the
8 * components docgen docs.
9 */
10export var Description = function Description(_ref) {
11 var markdown = _ref.markdown;
12 return /*#__PURE__*/React.createElement(ResetWrapper, null, /*#__PURE__*/React.createElement(Markdown, {
13 options: {
14 forceBlock: true,
15 overrides: components
16 }
17 }, markdown));
18};
19Description.displayName = "Description";
\No newline at end of file