UNPKG

@momentum-ui/react

Version:

Cisco Momentum UI framework for ReactJs applications

26 lines (24 loc) 760 B
/** @component loading-spinner */ import React from 'react'; import PropTypes from 'prop-types'; var Loading = function Loading(props) { var small = props.small; return /*#__PURE__*/React.createElement("div", { className: "md-loading" + ("" + (small ? ' md-loading--small' : '')) }, /*#__PURE__*/React.createElement("span", { className: "md-loading__icon" }), /*#__PURE__*/React.createElement("span", { className: "md-loading__icon" }), /*#__PURE__*/React.createElement("span", { className: "md-loading__icon" })); }; Loading.propTypes = { /** @prop Prop to make the Loading animation small | false */ small: PropTypes.bool }; Loading.defaultProps = { small: false }; Loading.displayName = 'Loading'; export default Loading;