GoScrobble/web/node_modules/@pmmmwh/react-refresh-webpack-plugin/overlay/components/Spacer.js

20 lines
420 B
JavaScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
/**
* @typedef {Object} SpacerProps
* @property {string} space
*/
/**
* An empty element to add spacing manually.
* @param {Document} document
* @param {HTMLElement} root
* @param {SpacerProps} props
* @returns {void}
*/
function Spacer(document, root, props) {
const spacer = document.createElement('div');
spacer.style.paddingBottom = props.space;
root.appendChild(spacer);
}
module.exports = Spacer;