UNPKG

@uiw-admin/components

Version:
29 lines 850 B
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["children", "style", "loading"]; import React from 'react'; import { Loader } from 'uiw'; import { Fragment as _Fragment } from "react/jsx-runtime"; import { jsx as _jsx } from "react/jsx-runtime"; var Skeleton = _ref => { var { children, style, loading = false } = _ref, others = _objectWithoutPropertiesLoose(_ref, _excluded); return /*#__PURE__*/_jsx(Loader, _extends({ loading: loading, style: _extends({ display: 'block' }, style) // fullscreen={true} , bgColor: "rgba(255, 255, 255, 0.4)" }, others, { children: /*#__PURE__*/_jsx(_Fragment, { children: children }) })); }; export default Skeleton;