PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.9
GiveWP – Donation Plugin and Fundraising Platform v4.16.9
4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 All 255 releases
give / src / Views / Components / Spinner / index.js

index.js in GiveWP – Donation Plugin and Fundraising Platform 4.16.9, at src/Views/Components/Spinner/index.js

28 lines 647 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import classNames from 'classnames';
2 import PropTypes from 'prop-types';
3
4 import styles from './Spinner.module.scss';
5
6 const Spinner = ({size = 'small', ...rest}) => {
7 const spinnerClasses = classNames({
8 [styles.spinner]: true,
9 [styles.large]: size === 'large',
10 [styles.medium]: size === 'medium',
11 [styles.small]: size === 'small',
12 [styles.tiny]: size === 'tiny',
13 });
14
15 return (
16 <div className={spinnerClasses} {...rest}>
17 {' '}
18 </div>
19 );
20 };
21
22 Spinner.propTypes = {
23 // Spinner size [small, medium, large ]
24 size: PropTypes.string,
25 };
26
27 export default Spinner;
28