| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/framework7/node_modules/skeleton-elements/react/ |
Upload File : |
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
import React from 'react';
const SkeletonBlock = ({
tag: Tag = 'div',
width,
height,
borderRadius,
effect,
className,
style,
children,
...other
} = {}) => {
const skeletonStyle = style || {};
if (width) skeletonStyle.width = width;
if (height) skeletonStyle.height = height;
if (borderRadius) skeletonStyle.borderRadius = borderRadius;
const skeletonClassName = ['skeleton-block', effect && `skeleton-effect-${effect}`, className].filter(c => !!c).join(' ');
return /*#__PURE__*/React.createElement(Tag, _extends({
style: skeletonStyle,
className: skeletonClassName
}, other), children);
};
export default SkeletonBlock;