diff --git a/src/components/PropList.js b/src/components/PropList.js index 53df022b6..2516310eb 100644 --- a/src/components/PropList.js +++ b/src/components/PropList.js @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { Fragment } from 'react'; import cx from 'classnames'; import PropTypes from 'prop-types'; import CodeDef from './CodeDef'; @@ -106,7 +106,20 @@ const PropList = ({ propTypes }) => { {defaultValue !== undefined && (
DEFAULT
- {String(defaultValue)} + + {String(defaultValue) + .split('.') + .map((word, idx, parts) => ( + + {word} + {idx !== parts.length - 1 && ( + <> + . + + )} + + ))} +
)}